shore.geometry
Geometry backends behind one protocol (ADR 0002).
Modules
shore.geometry.base— Geometry protocolshore.geometry.keys— Persistent entity identityshore.geometry.occt— OCCT backend of theGeometryprotocolshore.geometry.stl— STL backend of theGeometryprotocol
Re-exported
load_geometry function
python
load_geometry(path: str | Path, skip_hygiene: bool = False) -> GeometryLoad a geometry file, choosing the backend from its suffix.
Parameters
path—.stl(STL backend) or a CAD file (.step/.stp/.iges/.igs/.brep/.brp, OCCT backend).skip_hygiene— STL only: bypass mesh cleaning (seeshore.surface.io.load_stl).
Raises
MeshInputError— Unknown suffix, unreadable file, or a CAD file while the OCCT backend (shore-mesh[cad]) is not installed.