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.
Output Fields¶
outWEM¶
-
name:
outWEM
, type:
WEM(MLBase)
¶ The extruded output WEM.
For accessing this object via scripting see the Scripting Reference:MLWEMWrapper
.
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.
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.
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.