pyvista_cad.read_brep

On this page

pyvista_cad.read_brep#

read_brep(path, /, *, linear_deflection=0.1, angular_deflection=0.5, **_)[source]#

Read a BREP file as a pyvista.PolyData.

BREP is OpenCASCADE’s native shape serialization. The file is loaded with BRepTools.Read_s and tessellated with BRepMesh_IncrementalMesh.

Parameters:
pathstr or os.PathLike

Path to a .brep / .brp file.

linear_deflectionfloat, default: 0.1

OCCT linear deflection (model units).

angular_deflectionfloat, default: 0.5

OCCT angular deflection (radians).

**_Any

Forward-compat keyword arguments are accepted and ignored.

Returns:
pyvista.PolyData

Tessellated surface mesh.

Parameters:
Return type:

PolyData