vmtkMeshToNumpy

Description

Takes a VMTK mesh (VTK Unstructured Grid) object nested python dictionary containing numpyarrays specifying Points, PointData, Cells, CellData, and CellPointIds describing connectivity

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iMeshvtkUnstructuredGrid1the input mesh
ifileMeshInputFileNamestr1filename for the default Mesh reader
typestringsReturnCellTypesAsStringsbool11return a mapping of the vtk cell type class names to the cell type object IDs
structureStructureCellsAsListenable to return a list of numpy arrays where each element is an individual cell. Note: This is a computationally intensive operation which may fill memory, and which will drastically increase disk space used if data is saved. Not recommended for large data sets.
ofileArrayDictOutputFileNamestr1filename for the default ArrayDict writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oArrayDictdict1the output dictionary