pyvista_cad.write_brep#
- write_brep(mesh, path, /, **_)[source]#
Write a
pyvista.PolyDataas a faceted BREP file.The mesh is converted to a
TopoDS_Compoundof triangular faces and serialized withBRepTools.Write_s.- Parameters:
- meshpyvista.PolyData
Source mesh.
- pathstr or os.PathLike
Destination
.brep/.brppath.- **_Any
Forward-compat keyword arguments are accepted and ignored.
- Raises:
- pyvista_cad.CadWriteError
If
meshis not apyvista.PolyData, or if OCCT’sBRepTools.Write_sreports a failed write (for example an unwritable destination path): the failure is never silent.- pyvista_cad.OptionalDependencyError
If OCP is not installed.
- Parameters:
- Return type:
None