Better Step API Overview¶
The Better Step API is organized into a small set of core modules that cover the full CAD processing workflow: load CAD parts from HDF5, inspect geometry and topology, and sample data for downstream applications such as machine learning, feature detection, and large-scale analysis.
Modules¶
-
Utilities (
abs.utils)
Entry points for loading data from HDF5, including helpers such asread_parts(andread_meshwhen mesh data is available). -
Geometry (
abs.curve, surfaces)
Classes and methods to represent and evaluate geometric primitives such as curves and surfaces (e.g., B-splines), including sampling and derivatives. -
Topology (
abs.topology)
B-Rep connectivity and structure:Edge,Halfedge,Loop,Face,Shell, andSolid. Provides traversal and queries such as face adjacency and trimming-aware filtering. -
Sampling (
abs.part_processor)
Tools to extract point samples and derived attributes (e.g., normals, sharp features). Includes batch-friendly routines likesample_parts, where a user-definedlambda_funccan compute arbitrary per-sample outputs alongside points.
Typical workflow¶
- Load parts from an HDF5 file (
read_parts) - Traverse topology (solids → shells → faces → loops → halfedges)
- Evaluate geometry (curves/surfaces) and sample points and attributes
- Scale up using the CLI or batch scripts for dataset processing