SoWEMConvertInventor¶
- InventorModule¶
genre
author
package
dll
definition
see also
keywords
Purpose¶
The SoWEMConvertInventor module converts all triangles of an Open Inventor scene into the WEM format (winged-edge mesh). The complexity of the algorithm to convert all triangles is O(n(logn)), with n = number of vertices.
Usage¶
Connect the Open Inventor scene to be converted to this module and press Apply.
Details¶
The module uses a hash table to test if a vertex of a new incoming triangle has been already processed and is already a WEM node in the WEM data structure. The bounding box of the scene is divided in NxNxN cubes (currently N=10, because of memory capacity). For each vertex, the corresponding cube is searched to result in the index of the hash table.
Windows¶
Default Panel¶
Input Fields¶
The only input of the module is the Open Inventor scene to be converted.
inScene¶
- name: inScene, type: SoNode¶
Output Fields¶
The module has the converted scene as a WEM output. The SoNode output is not used and is hidden.
outWEM¶
- name: outWEM, type: WEM(MLBase)¶
For accessing this object via scripting, see the Scripting Reference:
MLWEMWrapper.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Apply¶
- name: apply, type: Trigger¶
When pressed, the module converts an input scene anew to a WEM.
Auto apply¶
- name: autoApply, type: Bool, default: TRUE¶
If checked, the module converts the input WEM to a Open Inventor scene on each change of the input WEM.
Use Node Colors¶
- name: useNodeColors, type: Bool, default: FALSE¶
If checked, the diffuse colors of the Open Inventor scene are set as WEM node colors.