vmtkSurfaceToNumpy

Description

Takes a VTK triangulated surface vtkPolyData file (optionally containing point data scalar arrays) and returns a nested python dictionary containing numpy arrays specifying vertex points, associated scalar data, and cell data yielding triangle connectivity

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iSurfacevtkPolyData1the input surface
ifileSurfaceInputFileNamestr1filename for the default Surface reader
celltopointConvertCellToPointbool10convert cell data to point data
ofileArrayDictOutputFileNamestr1filename for the default ArrayDict writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oArrayDictdict1the output dictionary