pyvista_cad.read_fcstd

On this page

pyvista_cad.read_fcstd#

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

Read a FreeCAD document as a pyvista.MultiBlock.

FCStd files are zip archives carrying a Document.xml manifest plus one BREP file per part. The FreeCAD binary is not required; only OCP is used to tessellate the BREPs.

Each part becomes one block. field_data['cad.label'] carries the FreeCAD label, cad.color carries the shape color when present, and cad.source_format is 'fcstd'.

Parameters:
pathstr or os.PathLike

Path to a .FCStd 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.MultiBlock

One block per FreeCAD part.

Parameters:
Return type:

MultiBlock