Skip to content

shore.geometry ​

Geometry backends behind one protocol (ADR 0002).

Modules

Re-exported

load_geometry function ​

python
load_geometry(path: str | Path, skip_hygiene: bool = False) -> Geometry

source

Load 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 (see shore.surface.io.load_stl).

Raises

  • MeshInputError — Unknown suffix, unreadable file, or a CAD file while the OCCT backend (shore-mesh[cad]) is not installed.

Released under the MIT License.