SoWEMExtrude

InventorModule
genre WEMInteraction
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoWEM
definition SoWEM.def
see also SoView2DWEMContour, WEMExtrude
keywords surface, interaction

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.

Each drawn contour is extruded to a WEM surface and added to the WEM output.

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/Inventor/SoWEM/mhelp/Images/Screenshots/SoWEMExtrude._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 to receive drawing event (for drawing the contour).

Parameter Fields

Field Index

Apply: Trigger pickCulling: Enum Unify: Bool
Auto Apply: Bool renderCaching: Enum Use Jitter: Bool
Auto Update: Bool renderCulling: Enum  
autoClear: Bool status: String  
boundingBoxCaching: Enum Subdivide: Bool  
Clear: Trigger Triangulate: Bool  
Hit Points: Vector2List triangulationMode: Enum  
Jitter Factor: Float Undo: Trigger  

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, the module computes anew on each parameter change.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

If checked, the module computes anew on each input change.

Apply

name: apply, type: Trigger

If pressed, the module computes a new output.

Clear

name: clear, type: Trigger

If pressed, the extruded output WEM is cleared.

Triangulate

name: triangulate, type: Bool, default: TRUE

If checked, the extruded WEM consists of triangles only.

Subdivide

name: subdivide, type: Bool, default: TRUE

If checked, the extruded WEM is being subdivided so that no larger triangles (polygons) will be generated.

Undo

name: undo, type: Trigger

If pressed, the last extrusion is undone.

Unify

name: unify, type: Bool, default: FALSE

If checked, consecutively extruded (and overlapping) WEMs are being unified by a Boolean operation.

Hit Points

name: hitPoints, type: Vector2List, default: 0 0

A string of x / y screen coordinates to constitute the contour (if not drawn interactively).

Use Jitter

name: useJitter, type: Bool, default: FALSE

If checked, the jitter factor is used to displace drawn and generated points randomly.

Jitter Factor

name: jitterFactor, type: Float, default: 0.1, minimum: 0.1, maximum: 10

A factor to randomly displacing the drawn or set points for the contour. If the WEM to cut with the extruded WEM is very regular, using the jittering can redeem some artifacts.

Only has an effect if Use Jitter is being checked.

Hidden Fields

renderCaching

name: renderCaching, type: Enum, default: OFF

Values:

Title Name
On ON
Off OFF
Auto AUTO

boundingBoxCaching

name: boundingBoxCaching, type: Enum, default: OFF

Values:

Title Name
On ON
Off OFF
Auto AUTO

renderCulling

name: renderCulling, type: Enum, default: AUTO

Values:

Title Name
On ON
Off OFF
Auto AUTO

pickCulling

name: pickCulling, type: Enum, default: OFF

Values:

Title Name
On ON
Off OFF
Auto AUTO

autoClear

name: autoClear, type: Bool, default: TRUE

status

name: status, type: String

triangulationMode

name: triangulationMode, type: Enum, default: TRIANGULATION_STRIP

Values:

Title Name
Center TRIANGULATION_CENTER
Fan TRIANGULATION_FAN
Strip TRIANGULATION_STRIP