pyvista_cad.CadDataSetAccessor.tessellation_quality

pyvista_cad.CadDataSetAccessor.tessellation_quality#

property CadDataSetAccessor.tessellation_quality: dict[str, float | None] | None#

Tessellation deflections last used to build this mesh.

tessellate() stamps the cad.linear_deflection and cad.angular_deflection it used into field data; this property reads them back.

Returns:
dict or None

{'linear_deflection': float | None, 'angular_deflection': float | None} when at least one deflection is stamped, otherwise None.

Examples

>>> import pyvista_cad
>>> from pyvista_cad import examples
>>> mesh = pyvista_cad.read_step(examples.step_cube)
>>> fine = mesh.cad.tessellate(linear_deflection=0.05)
>>> sorted(fine.cad.tessellation_quality)
['angular_deflection', 'linear_deflection']