WEMInitialize

MLModule

genre

WEMGenerate

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

dll

MLWEMModules

definition

MLWEMModules.def

see also

WEMLoad, LocalWEMLoad

inherits from

WEMGenerator

keywords

initialization, shape, wem, surface, create, generate, test

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

../../../Modules/ML/MLWEMModules/mhelp/Images/Screenshots/WEMInitialize._default.png

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

Apply: Trigger

isProcessing: Bool

Translation: Vector3

Auto Apply: Bool

Label: String

Triangulate: Bool

clear: Trigger

Mirror Faces: Bool

Triangulation Mode: Enum

Description: String

Model: Enum

updateMode: Enum

elapsedTime: Float

Overwrite label and description: Bool

Generate Edges: Bool

Scale: Vector3

Generate Primitive Value Lists: Bool

shouldComputeNormals: Bool

id: Integer

Subdivision Level: Integer

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 Label and Description.

see also WEMGenerator.overwriteLabelDescription

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 Subdivision Level.

Octasphere

Octasphere

An octasphere is generated. This is a subdivided Octahedron. Its subdivision level depends on the field Subdivision Level.

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’.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, persistent: no

see WEMGenerator.isProcessing

elapsedTime

name: elapsedTime, type: Float, persistent: no

see WEMGenerator.elapsedTime

id

name: id, type: Integer, default: 0

see WEMGenerator.id

updateMode

name: updateMode, type: Enum, default: AutoUpdate

see WEMGenerator.updateMode

clear

name: clear, type: Trigger

see WEMGenerator.clear

shouldComputeNormals

name: shouldComputeNormals, type: Bool, default: TRUE

see WEMGenerator.shouldComputeNormals