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.xmlmanifest 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.colorcarries the shape color when present, andcad.source_formatis'fcstd'.- Parameters:
- pathstr or os.PathLike
Path to a
.FCStdfile.- 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: