WEMClipPlaneToWEM

MLModule

genre

WEMProcessing

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

dll

MLWEMModules

definition

MLWEMModules.def

inherits from

WEMProcessor

Purpose

The module WEMClipPlaneToWEM clips a WEM with a given Plane and generates the resulting clipped WEM (either above or below the plane).

Details

Sometimes, generating a cover is not possible. In this case, a warning message appears in the console, and the validWEM is set to False.

Input Fields

inWEM

name: inWEM, type: WEM(MLBase)

The input WEM.

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

Output Fields

outWEM

name: outWEM, type: WEM(MLBase)

The output WEM.

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

Parameter Fields

Field Index

elapsedTime: Float

progress: Float

workDirectlyOnInputWEMs: Bool

Generate Edges: Bool

PVL Default Value: Double

id: Integer

PVL Interpolation Mode: Enum

isProcessing: Bool

Result Mode: Enum

listenToFinishNotifications: Bool

shouldComputeNormals: Bool

listenToRepaintNotifications: Bool

triangulationMode: Enum

listenToSelectionChangedNotifications: Bool

validWEM: Bool

Plane: Plane

Which Output: Enum

Visible Fields

Plane

name: plane, type: Plane, default: 0 0 1 0

Sets the plane (in world coordinates) that is used for clipping with the WEM.

Generate Edges

name: generateEdges, type: Bool, default: TRUE

If checked, edge connectivity is generated.

Result Mode

name: resultMode, type: Enum, default: RemainderOnly, deprecated name: closeIntersection

Defines what the module outputs as a result.

Values:

Title

Name

Deprecated Name

Description

​Remainder Only

​RemainderOnly

​FALSE

​The module returns only the clipped WEM patch, which is an open surface.

​Remainder With Cover

​RemainderWithCover

​TRUE

​The module returns a closed clipped WEM patch. In the rendering, there might be shading artifacts, which can be reduced by using a crease angle in SoWEMRenderer.

​Cover Only

​CoverOnly

​The module returns only the cover.

​Remainder And Cover In Separate Patches

​RemainderAndCoverInSeparatePatches

​The module returns the clipped WEM and the cover as separate patches.

This is advantageous because the cover has no rendering artifacts. However, this result may not be useful for further processing, as it is no longer a single surface, and the positions of the nodes in the cover and the clipped WEM (the remainder) are duplicated.

Which Output

name: whichOutput, type: Enum, default: PositiveSide

Defines which part of the clipped WEM is shown.

Values:

Title

Name

Description

​Positive Side

​PositiveSide

​Outputs the WEM that lies on the positive side of the plane.

​Negative Side

​NegativeSide

​Outputs the WEM that lies on the negative side of the plane.

PVL Interpolation Mode

name: pvlInterpolationMode, type: Enum, default: LinearInterpolatePVLValues

Defines the interpolation mode for PVL values at newly added nodes. Nodes can be added by clipping an edge.

Values:

Title

Name

Description

​Drop

​Drop

​PVL values are not retained at all.

​Linear

​Linear

​PVL values are interpolated linearly.

​Nearest Neighbor

​NearestNeighbor

​PVL values are interpolated using the value of the nearest neighbor.

​Use Default

​UseDefault

​A default value, set by PVL Default Value, is used.

PVL Default Value

name: pvlDefaultValue, type: Double, default: 0

Sets the default PVL value for newly added nodes.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, persistent: no

see WEMGenerator.isProcessing

elapsedTime

name: elapsedTime, type: Float, persistent: no

see WEMGenerator.elapsedTime

id

name: id, type: Integer, default: 0

see WEMGenerator.id

shouldComputeNormals

name: shouldComputeNormals, type: Bool, default: TRUE

see WEMGenerator.shouldComputeNormals

workDirectlyOnInputWEMs

name: workDirectlyOnInputWEMs, type: Bool, default: FALSE

see WEMProcessor.workDirectlyOnInputWEMs

listenToFinishNotifications

name: listenToFinishNotifications, type: Bool, default: TRUE

see WEMProcessor.listenToFinishNotifications

listenToRepaintNotifications

name: listenToRepaintNotifications, type: Bool, default: TRUE

see WEMProcessor.listenToRepaintNotifications

listenToSelectionChangedNotifications

name: listenToSelectionChangedNotifications, type: Bool, default: TRUE

see WEMProcessor.listenToSelectionChangedNotifications

progress

name: progress, type: Float, persistent: no

see WEMProcessor.progress

triangulationMode

name: triangulationMode, type: Enum, default: Strip

see WEMProcessor.triangulationMode

validWEM

name: validWEM, type: Bool, default: FALSE