Sisyphe.core.sisypheMeshIO

External packages/modules

Sisyphe.core.sisypheMeshIO.readMeshFromOBJ(filename: str) vtkActor

Read mesh from OBJ file (.obj).

Parameters

filenamestr

OBJ file name (.obj)

Returns

vtk.vtkActor

loaded vtkActor

Sisyphe.core.sisypheMeshIO.readMeshFromSTL(filename: str) vtkActor

Read mesh from STL file (.stl).

Parameters

filenamestr

STL file name (.stl)

Returns

vtk.vtkActor

loaded vtkActor

Sisyphe.core.sisypheMeshIO.readMeshFromVTK(filename: str) vtkActor

Read mesh from VTK file (.vtk).

Parameters

filenamestr

VTK file name (.vtk)

Returns

vtk.vtkActor

loaded vtkActor

Sisyphe.core.sisypheMeshIO.readMeshFromXMLVTK(filename: str) vtkActor

Read mesh from PySisyphe mesh or VTP file (.xmesh or .vtp).

Parameters

filenamestr

PySisyphe mesh or VTP file name (.xmesh or .vtp)

Returns

vtk.vtkActor

loaded vtkActor

Sisyphe.core.sisypheMeshIO.writeMeshToOBJ(data: vtkPolyData | vtkPolyDataMapper | vtkActor, filename: str) None

Write mesh to OBJ file (.obj).

Parameters

datavtkPolyData | vtkPolyDataMapper | vtkActor

mesh instance to save

filenamestr

OBJ file name (.obj)

Sisyphe.core.sisypheMeshIO.writeMeshToSTL(data: vtkPolyData | vtkPolyDataMapper | vtkActor, filename: str) None

Write mesh to STL file (.stl).

Parameters

datavtkPolyData | vtkPolyDataMapper | vtkActor

mesh instance to save

filenamestr

STL file name (.stl)

Sisyphe.core.sisypheMeshIO.writeMeshToVTK(data: vtkPolyData | vtkPolyDataMapper | vtkActor, filename: str) None

Write mesh to VTK file (.vtk).

Parameters

datavtkPolyData | vtkPolyDataMapper | vtkActor

mesh instance to save

filenamestr

VTK file name (.vtk)

Sisyphe.core.sisypheMeshIO.writeMeshToXMLVTK(data: vtkPolyData | vtkPolyDataMapper | vtkActor, filename: str) None

Write mesh to XMLVTK file (.vtp).

Parameters

datavtkPolyData | vtkPolyDataMapper | vtkActor

mesh instance to save

filenamestr

XMLVTK file name (.vtp)