Surface

Methods to convert surface objects to VTK data objects

Surface Geometry to VTK

omfvista.surface.surface_geom_to_vtk(surfgeom, origin=(0.0, 0.0, 0.0))[source]

Convert the triangulated surface to a pyvista.PolyData object

Args:
surfgeom (omf.surface.SurfaceGeometry): the surface geomotry to

convert

Surface Grid Geometry to VTK

omfvista.surface.surface_grid_geom_to_vtk(surfgridgeom, origin=(0.0, 0.0, 0.0))[source]

Convert the 2D grid to a pyvista.StructuredGrid object.

Args:
surfgridgeom (omf.surface.SurfaceGridGeometry): the surface

grid geometry to convert

Surface to VTK

omfvista.surface.surface_to_vtk(surfel, origin=(0.0, 0.0, 0.0))[source]

Convert the surface to a its appropriate VTK data object type.

Args:
surfel (omf.surface.SurfaceElement): the surface element to

convert