vmtkcenterlinemeshsections

Description

extract mesh sections along centerlines. The script takes in input the mesh and the relative centerlines.

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iMeshvtkUnstructuredGrid1the input mesh
ifileMeshInputFileNamestr1filename for the default Mesh reader
centerlinesCenterlinesvtkPolyData1the input centerlines
centerlinesfileCenterlinesInputFileNamestr1filename for the default Centerlines reader
sourceSectionSourcevtkPolyData1the input section source with which to probe the mesh (optional)
sourcefileSectionSourceInputFileNamestr1filename for the default SectionSource reader
usesourceUseSectionSourcebool1Falseif off, slice mesh with plane to generate sections; if on, use the SectionSource to probe the mesh
sourcescalingSourceScalingbool1Falsetoggle scaling the source with the local radius
transformsectionsTransformSectionsbool1Falsetransform sections so that they are at the origin, with normal 0,0,1 and upNormal 0,1,0
sectionidsarraySectionIdsArrayNamestr1SectionIdsthe name of the array where the ids identifying sections are stored
normalsarraySectionNormalsArrayNamestr1SectionNormalsthe name of the array where normals determining the section planes are stored
upnormalsarraySectionUpNormalsArrayNamestr1the name of the array where normals determining the "up" orientation of sections are stored
additionalnormalsarrayAdditionalNormalsArrayNamestr1Nonethe name of the array that contains normals that will be transformed and assigned to additional data points
additionalscalarsarrayAdditionalScalarsArrayNamestr1Nonethe name of the array that contains scalars that will be assigned to additional data points
vectorsarrayVectorsArrayNamestr1the name of the array where vectors, e.g. velocity vectors, are stored
originoffsetOriginOffsetfloat3[0.0, 0.0, 0.0]offset of subsequent sections after transformation
ofileCenterlineSectionsOutputFileNamestr1filename for the default CenterlineSections writer
sectionpointsfileSectionPointsPolyDataOutputFileNamestr1filename for the default SectionPointsPolyData writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oCenterlineSectionsvtkPolyData1the output sections
sectionpointsSectionPointsPolyDatavtkPolyData1the additional output poly data storing information about the location and orientation of sections