WEMInitialize¶
- MLModule¶
genre
author
package
dll
definition
see also
inherits from
keywords
Purpose¶
The module WEMInitialize initializes a WEM at a specified position and with a specified deformation.
Details¶
The module initializes a WEM with a well-formed winged-edge mesh that represents the chosen model. This can include, among others, an icosahedron composed of triangles and a cube made up of quadrilaterals.
However, for testing purposes, this module can also generate a corrupt WEM or an empty WEM.
Windows¶
Default Panel¶
Output Fields¶
The internally generated WEM.
outWEM¶
- name: outWEM, type: WEM(MLBase)¶
For accessing this object via scripting, see the Scripting Reference:
MLWEMWrapper.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
||
|
|
Visible Fields¶
Auto Apply¶
- name: autoApply, type: Bool, default: TRUE¶
If checked, the output WEM is generated as any parameter is changed.
see also WEMGenerator.autoApply
Apply¶
- name: apply, type: Trigger¶
When pressed, the output WEM is generated.
see also WEMGenerator.apply
Overwrite label and description¶
- name: overwriteLabelDescription, type: Bool, default: FALSE¶
If checked, label and description strings are set in the output WEM to
LabelandDescription.
Label¶
- name: label, type: String¶
Sets a label string in the output WEM.
see also WEMGenerator.label
Description¶
- name: description, type: String¶
Sets a description string in the output WEM.
see also WEMGenerator.description
Translation¶
- name: initialPosition, type: Vector3, default: 0 0 0¶
Sets the initial position of the WEM.
Scale¶
- name: initialDeformation, type: Vector3, default: 1 1 1¶
Sets the initial deformation (anisotropic scaling) of the WEM.
Model¶
- name: initModel, type: Enum, default: Icosahedron¶
Defines the model to be used.
Values:
Title |
Name |
Description |
|---|---|---|
Icosahedron |
Icosahedron |
An icosahedron consisting of twelve triangles is generated. |
Cube |
Cube |
A cube consisting of six quads is generated. |
So WEMDiagnosis Test |
SoWEMDiagnosis Test |
**This model is for testing purposes only and should not be considered a valid WEM!** |
Empty WEM |
EmptyWEM |
An empty WEM is generated. |
Tetrahedron |
Tetrahedron |
A tetrahedron consisting of four triangles is generated. |
Single Triangle |
SingleTriangle |
A single triangle is generated as a polygon patch. |
Two Triangles |
TwoTriangles |
Two simple adjacent triangles are generated. |
Icosphere |
Icosphere |
An icosphere is generated. This is a subdivided Icosahedron. Its subdivision level depends on the field |
Octasphere |
Octasphere |
An octasphere is generated. This is a subdivided Octahedron. Its subdivision level depends on the field |
Dodecahedron |
Dodecahedron |
A dodecahedron is generated. |
Subdivision Level¶
- name: sphereSubdivisionLevel, type: Integer, default: 4, minimum: 1¶
Sets the subdivision level of the spheres (Icosphere and Octasphere).
Mirror Faces¶
- name: mirrorFaces, type: Bool, default: FALSE¶
If checked, all generated faces are mirrored so that all face and node normals point inward.
Generate Edges¶
- name: generateEdges, type: Bool, default: TRUE¶
If checked, edges are generated for the output WEM.
Triangulate¶
- name: triangulate, type: Bool, default: FALSE¶
If checked, non-triangle faces are being triangulated using the
Triangulation Mode.
Triangulation Mode¶
- name: triangulationMode, type: Enum, default: Center node¶
Defines the triangulation mode.
Values:
Title |
Name |
Description |
|---|---|---|
Center node |
Center node |
A node is inserted to the center of the polygonal face and edges are added from this node to all the face’s original nodes. |
Fan |
Fan |
From one node (the first one), edges are generated to all other nodes of the polygon. |
Strip |
Strip |
Nodes on opposing sides are connected by edges. |
Generate Primitive Value Lists¶
- name: generatePrimitiveValueLists, type: Bool, default: FALSE¶
If checked, example values are set into the Primitive Value List named ‘LUT’.