WEMExtrude

MacroModule
genre WEMInteraction
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition WEMExtrude.def

Purpose

The WEMExtrude module allows to draw a contour onto the screen which is then projected into to screen along the viewing direction.

Usage

Add the Inventor output to a SoExaminerViewer and draw a contour.

Details

The contour is drawn in screen coordinates. By means of the projection matrix this contour can be projected onto the near Z clipping plane. By moving this contour along the viewing direction a 3D shape is created: an extruded WEM. The result is only created in the close neighborhood of the scene bounding box.

Interaction

Use a SoExaminerViewer to draw a contour. Every new interaction creates a new contour and thus a new extruded WEM.

Windows

Default Panel

../../../Modules/Macros/WEMExtrude/mhelp/Images/Screenshots/WEMExtrude._default.png

Output Fields

outWEM

name: outWEM, type: WEM(MLBase)

The extruded output WEM.

For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

self

name: self, type: SoNode

Open Inventor scene for receiving interaction events.

Parameter Fields

Field Index

Apply: Trigger Triangulate: Bool
Auto Apply: Bool Undo: Trigger
Auto Update: Bool  
Clear: Trigger  
Filter Sensitivity: Float  
Line Color: Color  
status: String  
Subdivide: Bool  

Visible Fields

Line Color

name: lineColor, type: Color, default: 1 1 0.600000023841858

Adjusts the color of the interactively drawn contour line.

Filter Sensitivity

name: filterSensitivity, type: Float, default: 0.99000001, minimum: 0.6, maximum: 1

Value to adjust the extruded WEM’s coarseness. A low value mean a high coarseness, a high value means that the drawn contour is extruded without any smoothing.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

If checked, the module generates a new output on each input change (which the module does not have).

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, the module generates a new output on each parameter change.

Apply

name: apply, type: Trigger

If pressed, the module will generated its output anew.

Undo

name: undo, type: Trigger

Each consecutive drawing of a contour leads to another extruded WEM being added to the output.

With this field, the adding of the last extruded WEM can be undone.

Clear

name: clear, type: Trigger

If pressed, the module clears its output (the extruded WEM).

Triangulate

name: triangulate, type: Bool, default: TRUE

If checked, all resulting polygons of the extrusion will be triangles.

Subdivide

name: subdivide, type: Bool, default: TRUE

If checked, the extruded WEM is bein subdivided so that no larger triangles appear. Having only smaller triangles causes a Boolean operation on the extruded WEM to be more precise.

Hidden Fields

status

name: status, type: String, default: Not enough hit points.