SoWEMExtrude

InventorModule
genre WEMInteraction
status stable
author Bart De Dobbelaer
package MeVisLab/Standard
dll SoWEM
definition SoWEM.def
see also SoView2DWEMContour, WEMBoolOp, WEMExtrude
keywords Extrude

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: MLBase

The extruded output WEM.

self

name: self, type: SoNode

OpenInventor 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: String triangulationMode: Enum  
Jitter Factor: Float Undo: Trigger  

Visible Fields

Apply

name: apply, type: Trigger

If pressed, the module computes a new output.

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.

Clear

name: clear, type: Trigger

If pressed, the extruded output WEM is cleared.

Hit Points

name: hitPoints, type: String, default: 0 0

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

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.

Subdivide

name: subdivide, type: Bool, default: TRUE

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

Triangulate

name: triangulate, type: Bool, default: TRUE

If checked, the extruded WEM consists of triangles only.

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.

Use Jitter

name: useJitter, type: Bool, default: FALSE

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

Hidden Fields

autoClear

name: autoClear, type: Bool, default: TRUE

boundingBoxCaching

name: boundingBoxCaching, type: Enum, default: OFF

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

renderCaching

name: renderCaching, 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

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