pyvista_cad.CadDataSetAccessor.to_topods

pyvista_cad.CadDataSetAccessor.to_topods#

CadDataSetAccessor.to_topods()[source]#

Build a faceted TopoDS shape from the dataset.

A watertight mesh yields a TopoDS_Solid; an open mesh yields a sewn shell or compound.

Returns:
TopoDS_Shape

TopoDS_Solid for a watertight mesh, otherwise a sewn shell or compound.

Return type:

Any

Examples

>>> import pyvista as pv
>>> import pyvista_cad
>>> type(pv.Sphere().cad.to_topods()).__name__
'TopoDS_Solid'