Provides CAD Exchanger data model.
The model encapsulates a scene graph (hierarchy of assemblies and parts) and is thus an entry point to entire 3D model data.
The model object can be and restored from a file in native CAD Exchanger format. Future versions may introduce model saving to CAD Exchanger native format.
Creates an instance of ModelData_Model.
Param | Type | Description |
---|---|---|
theNameoptional | string | The model name. |
The model name. null
if the model has no name (by default).
Number of root elements in the graph.
Accepts an element visitor.
Parameters:
Param | Type | Description |
---|---|---|
theVisitor | ModelData_SceneGraphElementVisitor |
Adds new root element into the scene graph.
Parameters:
Param | Type | Description |
---|---|---|
theRoot | ModelData_SceneGraphElement | The root element. |
Loads model from model URL. All necessary data will be requested using dataProvider
.
Parameters:
Param | Type | Default | Description |
---|---|---|---|
theFileId | string | The file identificator. | |
dataProvider | ModelData_CDXFBBufferProvider | The external model data provider. | |
theAppendoptional | boolean | true | Indicates append roots or not. |
theProgressScopeoptional | Base_ProgressScope |
Loads model from CDXFB scenegraph file. The external referenced data will be requested using dataProvider
.
Parameters:
Param | Type | Default | Description |
---|---|---|---|
theFileId | string | The file identificator | |
theScenegraphData | ModelData_CDXFBBufferType | The array buffer contains CDXFB scenegraph persistance. | |
dataProvider | ModelData_CDXFBBufferProvider | The external model data provider. | |
theAppendoptional | boolean | true | Indicates append roots or not |
Returns root element in the graph by index.
Parameters:
Param | Type | Description |
---|---|---|
theIndex | number | The root index. |