pyvista_cad.CadDataSetAccessor.has_brep_origin

pyvista_cad.CadDataSetAccessor.has_brep_origin#

property CadDataSetAccessor.has_brep_origin: bool#

Whether this dataset has a recoverable B-rep origin.

True when a cached originating TopoDS_Shape is associated with the mesh (or, for a MultiBlock, with any leaf block), or when a cad.has_brep_origin field-data flag is stamped truthy. False otherwise. The exact-geometry helpers (tessellate(), exact_volume(), center_of_mass()) require this to be True.

Returns:
bool

True if a cached TopoDS_Shape is recoverable.

Examples

>>> import pyvista as pv
>>> import pyvista_cad
>>> pv.Sphere().cad.has_brep_origin
False