MLBaseToVTKPolyData¶
- MLModule¶
genre
author
MeVis Medical Solutions AG
package
dll
definition
see also
SoVTK,MLToVTKArray,VTKToMLImage,MLToVTKImage,VTKView,WEMToVTKPolyData,VTKPolyDataToWEM,MLToVTKLookupTablekeywords
convert,translate,points,base,object,xmarkerlist,vector,source,input
Purpose¶
The module MLBaseToVTKPolyData provides a conversion from point- or vector-like ML Base objects to a vtkPoints / vtkPolyData object.
Supported Base objects are XMarkerContainer, XMarkerList, VectorList, and PointList.
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 that needs the vtkPoints object.
Windows¶
Default Panel¶
Input Fields¶
inputList¶
- name: inputList, type: XMarkerListContainer/XMarkerList/PointList/VectorList(MLBase)¶
Connect a
XMarkerContainer,XMarkerList,VectorList, orPointListobject to the input.For accessing this object via scripting, see the Scripting Reference:
MLXMarkerListWrapper.
Output Fields¶
outputPolyData¶
Parameter Fields¶
Visible Fields¶
Data Type¶
- name: dataType, type: Enum, default: Double¶
Defines the data type of the
vtkPoints/vtkPolyDataat the output.
Number Of Points¶
- name: numberOfPoints, type: Integer, persistent: no¶
Shows the number of points in the connected input Base object and the output
vtkPoints/vtkPolyDataobject.
Status¶
- name: status, type: String, persistent: no¶
Shows the module’s state.
Object Type¶
- name: objectType, type: Enum, default: Points¶
Defines the cell type of the output
vtkPolyDataobject.
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 to 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 to the first point, resulting in a closed polygon. Note: there is no check for convexity! |