visualdynamics.io.step¶
step
¶
STEP and IGES — B-rep CAD, tessellated here by OpenCASCADE.
Unlike STL and 3MF these files hold mathematics rather than
triangles, so reading them takes a geometry kernel: OCP (Apache-2.0
bindings) over OpenCASCADE (LGPL-2.1 with exception — the same
replaceable-library posture as Qt; see NOTICE.md). The kernel ships
in every packaged build, because a frozen application cannot grow it
later; the pip install keeps it optional (visualdynamics[step])
and this module refuses with the install command when it is absent.
What comes out matches the 3MF importer's contract: the assembly's named parts become named blocks, each instance placed by its own transform, coordinates in metres. This is the importer that takes a McMaster-Carr download directly — their STEP and IGES both land here.
Functions:
| Name | Description |
|---|---|
load |
Read a STEP or IGES file as a geometry — parts as named blocks. |
Classes¶
Functions:¶
load
¶
load(path: str | PathLike) -> Geometry
Read a STEP or IGES file as a geometry — parts as named blocks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or path - like
|
The |
required |
Returns:
| Type | Description |
|---|---|
Geometry
|
Triangle face elements in metres, tessellated by the kernel — one named block per free shape the file holds. |