Purpose

The purpose of MLBaseToVTKPolyData is to provide a conversion from point- or vector-like ML Base objects to a vtkPoints/vtkPolyData object. Supported Base objects are XMarkerContainers, XMarkerLists, VectorLists and PointLists.

Usage

Connect a XMarkerContainer, XMarkerList, VectorList or PointList object to the input, select the VTK Data Type for the list and an Object Type and connect the vtkPoints object at the module output to the module which needs the vtkPoints object.

Windows

Default Panel

../../../Modules/ML/MLVTKAdapters/mhelp/Images/Screenshots/MLBaseToVTKPolyData._default.png

Input Fields

inputList

name: inputList, type: MLBase

Connect a XMarkerContainer, XMarkerList, VectorList or PointList object to the input.

Output Fields

outputPolyData

name: outputPolyData, type: MLBase

The output provides a vtkPoints/vtkPolyData object. The number of points depends on the connected input Base object and the data type from the DataType parameter.

Parameter Fields

Visible Fields

Data Type

name: dataType, type: Integer, default: 10

The enumerator for the data type of the vtkPoints / vtkPolyData at the output. Default is 10 (=float).

Data Type To Bit

name: dataTypeToBit, type: Trigger

Selects the data type Bit (=1)

Data Type To Char

name: dataTypeToChar, type: Trigger

Selects the data type Char (=2)

Data Type To Unsigned Char

name: dataTypeToUnsignedChar, type: Trigger

Selects the data type Unsigned Char (=3)

Data Type To Short

name: dataTypeToShort, type: Trigger

Selects the data type Short (=4)

Data Type To Unsigned Short

name: dataTypeToUnsignedShort, type: Trigger

Selects the data type Unsigned Short (=5)

Data Type To Int

name: dataTypeToInt, type: Trigger

Selects the data type Int (=6)

Data Type To Unsigned Int

name: dataTypeToUnsignedInt, type: Trigger

Selects the data type Unsigned Int (=7)

Data Type To Long

name: dataTypeToLong, type: Trigger

Selects the data type Long (=8)

Data Type To Unsigned Long

name: dataTypeToUnsignedLong, type: Trigger

Selects the data type Unsigned Long (=9)

Data Type To Float

name: dataTypeToFloat, type: Trigger

Selects the data type Float (=10)

Data Type To Double

name: dataTypeToDouble, type: Trigger

Selects the data type Double (=11)

Number Of Points

name: numberOfPoints, type: Integer, default: 0

This read-only field shows the number of points in the connected input Base object and the output vtkPoints / vtkPolyData object.

Status

name: status, type: String, default: Input connection open(0 elements)

Shows modules state

Object Type

name: objectType, type: Enum, default: Points

Allows to set the cell type of the output vtkPolyData object

Values:

Title Name Description
Points Points The cell type VTK_POLY_VERTEX is used, resulting in a set of points.
Open Polyline Open Polyline The cell type VTK_POLY_LINE is used. Consecutive points are connected by a line, resulting in an open polyline.
Closed Polyline Closed Polyline The cell type VTK_POLY_LINE is used. Consecutive points are connected by a line. Additionally, the last point is connected with the first point, resulting in a closed polyline.
Polygon Polygon The cell type VTK_POLYGON is used. Consecutive points are connected by a line. Additionally, the last point is connected with the first point, resulting in a closed polygon. Note: there is no check for convexity!