vmtkNumpyToMesh

Description

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

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iArrayDictdict1the input array dictionary
ifileArrayDictInputFileNamestr1filename for the default ArrayDict reader
flattenFlattenListOfCellsenable to convert cells which are formated as a list of numpy arrays to the default flat structure
ofileMeshOutputFileNamestr1filename for the default Mesh writer

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
oMeshvtkUnstructuredGrid1the output mesh