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

Parameters

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.

Parameters

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.

Parameters

surfel (omf.surface.SurfaceElement) – the surface element to convert