Purpose

VTKPolyDataToWEM converts a vtkPolyData object to a WEM. It is an adaptor module between the WEM package and VTK modules in MeVisLab. It is especially useful to apply VTK algorithms to meshes created with WEM modules and vice versa.

Windows

Default Panel

../../../Modules/ML/MLWEMVTKAdapters/mhelp/Images/Screenshots/VTKPolyDataToWEM._default.png

Input Fields

inputPolyData

name: inputPolyData, type: MLBase

The input is a Base field for a vtkObjectTypeWrapper which contains a vtkPolyData object. It can be used to connect to a large number of VTK modules.

Output Fields

outWEM

name: outWEM, type: MLBase

The output connector is a Base field for WEM object which you find as an for many WEM modules.

Parameter Fields

Field Index

Apply: Trigger isProcessing: Bool
Auto apply: Bool label: String
clear: Trigger overwriteLabelDescription: Bool
description: String shouldComputeNormals: Bool
Do Scalar: Bool Status: String
elapsedTime: Float Update Mode: Enum
Generate Edges: Bool VTK Scalar: String
id: Integer WEM PVL: String

Visible Fields

Update Mode

name: updateMode, type: Enum, default: AutoUpdate

Specifies when and/or how the VTK image is updated on inputs changes.

Values:

Title Name Description
Off Off Leaves the internally used image (if there is one) unchanged on any input connector changes.
Auto Update AutoUpdate The internally image is updated to new image data at the image input of the module or even cleared if no valid data is connected to the input.
Auto Clear AutoClear The internally input image (if there is one) is cleared/removed on any change of the input connector.

Apply

name: apply, type: Trigger

See Auto apply.

Auto apply

name: autoApply, type: Bool, default: FALSE

If enabled then all changes are immediately applied and the output is updated. If disabled then Apply must be pressed to activate the settings.

Status

name: status, type: String, default: Could not convert, WEM is empty

Shows some information, normally some information about the connected input object.

VTK Scalar

name: vtkScalar, type: String

The name of the VTK’s scalar values of the nodes that should be converted to the WEM’s PVL.

WEM PVL

name: wemPVL, type: String, default: LUT

The name of the target WEM PVL for the VTK’s scalar node values.

Do Scalar

name: doScalar, type: Bool, default: FALSE

If enabled, the VTK’s scalar values associated with each node are added to the WEM’s PrimitiveValueList (PVL).

Generate Edges

name: generateEdges, type: Bool, default: FALSE

If enabled the additionally to the faces also edges are generated.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, persistent: no

elapsedTime

name: elapsedTime, type: Float, persistent: no

id

name: id, type: Integer, default: 0

clear

name: clear, type: Trigger

overwriteLabelDescription

name: overwriteLabelDescription, type: Bool, default: FALSE

label

name: label, type: String

description

name: description, type: String

shouldComputeNormals

name: shouldComputeNormals, type: Bool, default: TRUE