WEMExtrude

MacroModule
genre WEMInteraction
status stable
author Bart De Dobbelaer
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: MLBase

The extruded output WEM.

self

name: self, type: SoNode

OpenInventor 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

Apply

name: apply, type: Trigger

If pressed, the module will generated its output anew.

Auto Apply

name: autoApply, type: Bool, default: TRUE

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

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

Clear

name: clear, type: Trigger

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

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.

Line Color

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

Adjusts the color of the interactively drawn contour line.

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.

Triangulate

name: triangulate, type: Bool, default: TRUE

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

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.

Hidden Fields

status

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