You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 07f02b1
Browse filesBrowse the repository at this point in the historyBrowse files
TVGL.STEPImportExport provides STEP (`.step`, `.stp`) file import capabilities for TVGL (Tessellation and Voxelization Geometry Library).
3
+
TVGL.STEPImportExport provides STEP (`.step`, `.stp`) import and export capabilities for TVGL (Tessellation and Voxelization Geometry Library).
4
4
5
5
## Features
6
6
-**Accurate B-Rep Meshing**: Discretizes Boundary Representation solids into high-quality watertight triangle meshes powered by Open CASCADE Technology (OCCT).
7
7
-**Analytic Primitive Recovery**: Automatically extracts and maps analytic geometry surfaces (`Plane`, `Cylinder`, `Cone`, `Sphere`, `Torus`) with their exact mathematical parameters.
8
8
-**Full Doubly Linked Primitives**: Constituent `TriangleFace` objects and `PrimitiveSurface` objects are fully doubly linked (`face.BelongsToPrimitive` and `primitive.Faces`).
9
9
-**Freeform Surface Support**: Freeform surfaces (NURBS, B-Spline, Bezier, Offset) are represented as `UnknownRegion` primitives with their descriptive surface type preserved.
10
10
-**Multi-Body & Assembly Support**: Reconstructs multi-body STEP files into individual `TessellatedSolid`s and `SolidAssembly` hierarchies.
11
+
-**Hybrid Export**: `STEP.Save(solid, filePath)` and `STEP.SaveHybrid(solid, filePath)` preserve reliable TVGL planes, circularly bounded cylinders and cones, closed spheres, and closed ring tori as analytic STEP surfaces. Other regions use triangle faces.
12
+
-**Faceted Export**: `STEP.SaveFaceted(solid, filePath)` writes every triangle as a bounded planar STEP face. Watertight meshes become faceted B-reps; open meshes become surface models.
-**Stream Symmetry**: STEP solids and assemblies can be opened from or saved to caller-owned streams as well as files.
15
+
-**Unit Preservation**: Export converts supported TVGL units to the millimeter representation declared in the STEP context, including analytic dimensions.
16
+
17
+
## Export fidelity
18
+
19
+
Faceted export preserves the TVGL triangle geometry and winding. It does not
20
+
recreate analytic surfaces from primitive metadata. Hybrid export reconstructs
21
+
the validated analytic cases above. Trimmed spheres and tori, cylinders or cones
22
+
with non-circular trim curves, spindle tori, and NURBS regions remain faceted.
23
+
Closed spheres are written as eight exact spherical octants and closed tori as
24
+
sixteen exact analytic patches so their periodic topology is explicit. The
25
+
writer uses a temporary file and replaces the requested destination only after
0 commit comments