Post

InlineGeometry

InlineGeometry

Overview

InlineGeometry can load another X3D or VRML model into the current scene via url. InlineGeometry is an X3DGeometryNode node.

The InlineGeometry node belongs to the Networking component and requires at least support level 4, its default container field is geometry. It is available from X3D version 4.1 or higher.

Info: Please note that this node is still experimental, i.e. the functionality of this node may change in future versions of X_ITE.

Hierarchy

1
2
3
+ X3DNode
  + X3DGeometryNode
    + InlineGeometry (X3DUrlObject)*

* Derived from multiple interfaces.

Fields

TypeAccess TypeNameDefault Value
SFNode[in, out]metadataNULL
SFString[in, out]description””
SFBool[in, out]loadTRUE
MFString[in, out]url[ ]
SFTime[in, out]autoRefresh0
SFTime[in, out]autoRefreshTimeLimit3600

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFString [in, out] description “”

Author-provided prose that describes intended purpose of the url asset.

Hint

  • Many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for “ quotation-mark character).

SFBool [in, out] load TRUE

load=true means load immediately, load=false means defer loading or else unload a previously loaded asset.

Hints

  • Allows author to design when Inline loading occurs via user interaction, event chains or scripting.
  • Use a separate LoadSensor node to detect when loading is complete.

MFString [in, out] url [ ] [URI]

Address of X3D world to load Inline with current scene, retrieved either from local system or an online address. Browser support for X3D model support can include allowed file formats for XML .x3d, ClassicVRML .x3dv, X3D Binary .x3db, X3D JSON .json, and Virtual Reality Modeling Language (VRML97) .wrl.

Hints

Warnings

SFTime [in, out] autoRefresh 0 [0,∞)

autoRefresh defines interval in seconds before automatic reload of current url asset is performed.

Hints

  • If preceding file loading fails or load field is false, no refresh is performed.
  • Repeated refresh attempts to reload currently loaded entry of url list. If that fails, the browser retries other entries in the url list.

Warning

  • Automatically reloading content has security considerations and needs to be considered carefully.

SFTime [in, out] autoRefreshTimeLimit 3600 [0,∞)

autoRefreshTimeLimit defines maximum duration that automatic refresh activity can occur.

Hint

  • Automatic refresh is different than query and response timeouts performed by a networking library while sequentially attempting to retrieve addressed content from a url list.

Warning

  • Automatically reloading content has security considerations and needs to be considered carefully.

Supported File Formats

EncodingFile ExtensionMIME TypeComment
X3D XML.x3d, .x3dzmodel/x3d+xmlX3D Encoding: XML
X3D JSON.x3dj, .x3djzmodel/x3d+jsonX3D Encoding: JSON
X3D Classic VRML.x3dv, .x3dvzmodel/x3d+vrmlX3D Encoding: Classic VRML
VRML 2.0.wrl, .wrzmodel/vrmlVRML Specification
glTF.gltf, .glbmodel/gltf+jsonglTF Support
Wavefront OBJ.objmodel/obj 
STL.stlmodel/stlASCII & Binary
PLY.plymodel/plyASCII & Binary
SVG Document.svg, .svgzimage/svg+xml 

Tip: All files can be compressed using GZip compression (usually denoted by a ‘z’ at the end of the filename suffix). This saves bandwidth and speeds up download time.

Example

InlineGeometry

See Also

This post is licensed under CC BY 4.0 by the author.