WEMDemergePatches

MLModule
genre WEMProcessing
status stable
author Olaf Konrad
package MeVisLab/Standard
dll MLWEMModules
definition MLWEMModules.def
see also WEMInfo
keywords WEM, separate, connected, components

Purpose

The module WEMDemergePatches splits a WEM into connected components and offers the possibility to remove certain parts of those separated WEMPatches.

Details

The module scans the input WEM for connected components. For each connected component, a WEMPatch is generated, and the geometry stored in there.

This list of WEMPatches (connected components) can be purged by adjusting the purge mode and limit.

The following purge modes are available:

  • Num Nodes, Num Edges, Num Faces, Primitives Percentage
  • Area mm2, Area cm2, Area m2, Area Percentage
  • Volume mm3, Volume cm3, Volume 3, Volume Percentage

A purge limit of 0 disables the purging which is the default.

Windows

Default Panel

../../../Modules/ML/MLWEMModules/mhelp/Images/Screenshots/WEMDemergePatches._default.png

Input Fields

inWEM

name: inWEM, type: MLBase

The input WEM consisting to be demerged.

Output Fields

outWEM

name: outWEM, type: MLBase

The demerged and eventually purged WEM.

Parameter Fields

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, all parameter changes lead to a new computation.

Auto Update

name: autoUpdate, type: Bool, default: TRUE

If checked, all changes to the input WEM lead to a new computation.

Apply

name: apply, type: Trigger

If pressed, the module demerged and purges the input WEM.

Label

name: label, type: String

Sets a label that can be set to the output WEM.

Description

name: description, type: String

Sets a descriptive text that can be set to the output WEM.

Generate Edges

name: generateEdges, type: Bool, default: TRUE

If checked and the input WEM has no edges computes yet, edges are computated in the output WEMPatches.

Limit

name: limit, type: Float, default: 0

Sets the limit for purging WEMPatches. A value of 0 means no purging.

Patch List String

name: patchListString, type: String

Shows all demerged patches and information about them in this string.

Purge Mode

name: limitMode, type: Enum, default: PrimitivesPercentage

Defines the purge mode that is active if the Limit is greater than 0.

Values:

Title Name
Num Nodes NumNodes
Num Edges NumEdges
Num Faces NumFaces
Primitives Percentage PrimitivesPercentage
Area SMM AreaSMM
Area SCM AreaSCM
Area SM AreaSM
Area Percentage AreaPercentage
Volume CMM VolumeCMM
Volume CCM VolumeCCM
Volume CM VolumeCM
Volume Percentage VolumePercentage

Use Primitive Value List

name: usePrimitiveValueList, type: Bool, default: FALSE

If checked, the module does not scan for connected components anymore but rather for nodes with a Primitive Value List value in a given range.

Primitive Value List Name

name: primitiveValueListName, type: String, default: LUT

Sets the Primitive Value List which is used as a look up for the value range.

Primitive Value List Range

name: primitiveValueListRange, type: Double, default: 1

Sets the range for the PVL values to lead to a separation into WEMPatches.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, default: FALSE

elapsedTime

name: elapsedTime, type: Float, default: 0

id

name: id, type: Integer, default: 0

autoClear

name: autoClear, type: Bool, default: FALSE

removePreviousWEMs

name: removePreviousWEMs, type: Bool, default: TRUE

show

name: show, type: Bool, default: TRUE

editable

name: editable, type: Bool, default: TRUE

useFaceDiffuseColor

name: useFaceDiffuseColor, type: Bool, default: TRUE

usePolygonOffset

name: usePolygonOffset, type: Bool, default: FALSE

copyInputWEMs

name: copyInputWEMs, type: Bool, default: FALSE

listenToFinishNotifications

name: listenToFinishNotifications, type: Bool, default: TRUE

forwardRepaintNotifications

name: forwardRepaintNotifications, type: Bool, default: TRUE

forwardSelectionNotifications

name: forwardSelectionNotifications, type: Bool, default: TRUE

progress

name: progress, type: Float, persistent: no

useInputWEMToCreateOutputWEM

name: useInputWEMToCreateOutputWEM, type: Bool, persistent: no

triangulationMode

name: triangulationMode, type: Enum, default: Strip

Values:

Title Name
Center node Center node
Fan Fan
Strip Strip

modifyAttributes

name: modifyAttributes, type: Bool, default: FALSE

outputTabSelected

name: outputTabSelected, type: Bool, default: TRUE