Expand description
A native and WebAssembly boundary-representation (B-rep) geometry kernel.
Published as BREP_kernel; the library name is brep_kernel. It is the exact
geometry engine of the BREP CAD application and is usable on its own:
- exact rational NURBS curves and surfaces with recognised analytic carriers;
- manifold B-rep topology with validation (
BrepSolid), and primitives (make_box_brep,make_cylinder_brep,make_sphere_brep, …); - booleans (
boolean_operation), fillets and chamfers (fillet_edges,chamfer_edge), sweeps (sweep_profile_along_path,sweep_profile_helix), lofts including guide curves (loft_profile_brep,loft_profile_brep_on_guides), offsets (offset_shell) and thickening; - mass properties (
solid_mass_properties) and watertight tessellation (tessellate_brep_watertight); - STEP (
import_step,export_step), IGES (import_iges,export_iges), STL, OBJ and 3MF exchange; - a JSON feature-history pipeline (
execute_history_json).
Booleans, blends, sweeps and lofts refuse with a typed KernelRefusal
rather than returning a wrong body; many other entry points return
Result<_, String>.
use brep_kernel::{
boolean_operation, make_box_brep, make_cylinder_brep, solid_mass_properties,
tessellate_brep_watertight, BooleanOperation, BooleanOptions, Vec3,
};
fn main() -> Result<(), String> {
// A 40 x 30 x 20 block with a vertical radius-8 hole through it.
let block = make_box_brep(Vec3::new(0.0, 0.0, 0.0), 40.0, 30.0, 20.0)?;
let hole = make_cylinder_brep(
Vec3::new(20.0, 15.0, -1.0), // base point
Vec3::new(0.0, 0.0, 1.0), // axis direction
8.0, // radius
22.0, // height (through the block)
)?;
let part = boolean_operation(&block, &hole, BooleanOperation::Subtract, &BooleanOptions::default())
.map_err(|error| error.to_string())?;
// Mass properties integrated from the B-rep (no display mesh involved).
let props = solid_mass_properties(&part)?;
let expected = 40.0 * 30.0 * 20.0 - std::f64::consts::PI * 8.0 * 8.0 * 20.0;
assert!((props.volume - expected).abs() < 1e-6 * expected);
// Watertight display mesh at a 0.05 chord tolerance.
let mesh = tessellate_brep_watertight(&part, 0.05)?;
assert!(!mesh.indices.is_empty());
Ok(())
}The crate README lists the capabilities in detail.
Re-exports§
pub use feature_pipeline::execute_history_json;pub use feature_pipeline::first_reference_name;pub use feature_pipeline::imported_solid_names;pub use feature_pipeline::is_gear_type;pub use feature_pipeline::is_weld_type;pub use feature_pipeline::reference_names;pub use feature_pipeline::face_transform_pivot;pub use feature_pipeline::face_transform_reference_point;pub use feature_pipeline::clear_history_cache;pub use feature_pipeline::execute_history;pub use feature_pipeline::execute_history_observed;pub use feature_pipeline::AddedSolid;pub use feature_pipeline::Axis;pub use feature_pipeline::ComponentRecord;pub use feature_pipeline::FeatureDescriptor;pub use feature_pipeline::FeatureRefusal;pub use feature_pipeline::FeatureResult;pub use feature_pipeline::Frame;pub use feature_pipeline::Fulfilment;pub use feature_pipeline::HistoryProgress;pub use feature_pipeline::HistoryRequest;pub use feature_pipeline::Rejected;pub use feature_pipeline::RejectedKind;pub use feature_pipeline::HistoryResult;pub use feature_pipeline::PortKind;pub use feature_pipeline::PortRecord;pub use feature_pipeline::ProfileLoop;pub use feature_pipeline::ScenePoint;pub use feature_pipeline::SketchProfile;pub use feature_pipeline::wire_harness::bundle_diameter;pub use feature_pipeline::wire_harness::Attachment as SplineAttachment;pub use feature_pipeline::wire_harness::BundleStatus;pub use feature_pipeline::wire_harness::PortSide;pub use feature_pipeline::wire_harness::RouteResult;pub use feature_pipeline::wire_harness::RouteStatus;pub use feature_pipeline::wire_harness::WireHarnessBundle;pub use feature_pipeline::wire_harness::WireHarnessConnection;pub use feature_pipeline::wire_harness::WireHarnessEndpoint;pub use feature_pipeline::wire_harness::WireHarnessReport;pub use feature_pipeline::wire_harness::WireHarnessState;pub use feature_pipeline::wire_harness::BUNDLE_SOLID_PREFIX;pub use feature_pipeline::wire_harness::WIRE_HARNESS_FEATURE_ID;pub use feature_pipeline::wire_harness::WIRE_HARNESS_FEATURE_TYPE;pub use feature_pipeline::part_pins::declarations as declared_ports;pub use feature_pipeline::part_pins::declared_endpoints as declared_point_endpoints;pub use feature_pipeline::part_pins::declared_points;pub use feature_pipeline::part_pins::endpoint_occurrence;pub use feature_pipeline::part_pins::follow_pin_edit;pub use feature_pipeline::part_pins::follow_point_edit;pub use feature_pipeline::part_pins::pin_labels;pub use feature_pipeline::part_pins::pin_point_report;pub use feature_pipeline::part_pins::pins;pub use feature_pipeline::part_pins::point_renames;pub use feature_pipeline::part_pins::port_group_for_unit;pub use feature_pipeline::part_pins::resolve_component_pin;pub use feature_pipeline::part_pins::resolve_part_pin;pub use feature_pipeline::part_pins::unit_count as symbol_unit_count;pub use feature_pipeline::part_pins::unit_groups;pub use feature_pipeline::part_pins::DeclaredPin;pub use feature_pipeline::part_pins::DeclaredPoint;pub use feature_pipeline::part_pins::PinPoint;pub use feature_pipeline::part_pins::PinPointChange;pub use feature_pipeline::part_pins::PinPointProblem;pub use feature_pipeline::part_pins::PinPointReport;pub use feature_pipeline::part_pins::PointRenames;pub use feature_pipeline::part_pins::DEFAULT_PORT_NAME;pub use feature_pipeline::part_pins::DEFAULT_PORT_PURPOSE;pub use feature_pipeline::part_pins::PADS_BLOCK;pub use feature_pipeline::part_pins::SYMBOL_BLOCK;pub use feature_pipeline::ports::address as port_address;pub use feature_pipeline::ports::contact_body_axis;pub use feature_pipeline::ports::contact_body_end;pub use feature_pipeline::ports::contact_body_solid;pub use feature_pipeline::ports::document_is_boundary;pub use feature_pipeline::ports::seat_of as port_seat_of;pub use feature_pipeline::ports::seat_point;pub use feature_pipeline::ports::ContactAxis as PortContactAxis;pub use feature_pipeline::ports::ContactRule as PortContactRule;pub use feature_pipeline::ports::PortContactRow;pub use feature_pipeline::ports::seat_vector;pub use feature_pipeline::ports::seated_direction;pub use feature_pipeline::ports::split_address;pub use feature_pipeline::ports::unit_map;pub use feature_pipeline::ports::unseat_point;pub use feature_pipeline::ports::unseat_vector;pub use feature_pipeline::ports::world_seat;pub use feature_pipeline::ports::PortDeclaration;pub use feature_pipeline::ports::PortPoint;pub use feature_pipeline::ports::PortPointRow;pub use feature_pipeline::ports::PortSeat;pub use feature_pipeline::ports::PortsReport;pub use feature_pipeline::ports::UnitProblem;pub use feature_pipeline::ports::BOUNDARY_KEY;pub use feature_pipeline::ports::PORTS_BLOCK;pub use feature_pipeline::ports::PORTS_FEATURE_ID;pub use feature_pipeline::ports::PORTS_FEATURE_TYPE;pub use feature_pipeline::pmi::balloon_head as pmi_balloon_head;pub use feature_pipeline::pmi::clamp_text_size;pub use feature_pipeline::pmi::format_dimension;pub use feature_pipeline::pmi::format_number;pub use feature_pipeline::pmi::nearest_point_on_edge;pub use feature_pipeline::pmi::nearest_point_on_solid;pub use feature_pipeline::pmi::pmi_schema_catalogue;pub use feature_pipeline::pmi::pmi_type;pub use feature_pipeline::pmi::nearest_displayed_point;pub use feature_pipeline::pmi::nearest_displayed_point_on_edge;pub use feature_pipeline::pmi::pose_apply as pmi_pose_apply;pub use feature_pipeline::pmi::pose_unapply as pmi_pose_unapply;pub use feature_pipeline::pmi::resolve_state as pmi_resolve_state;pub use feature_pipeline::pmi::entry_names_solid;pub use feature_pipeline::pmi::baseline_hide_id;pub use feature_pipeline::pmi::BalloonAnchor;pub use feature_pipeline::pmi::BalloonAnchorMode;pub use feature_pipeline::pmi::CenterCircle;pub use feature_pipeline::pmi::FcfFrame;pub use feature_pipeline::pmi::HalfSpace as PmiHalfSpace;pub use feature_pipeline::pmi::HeadScope as PmiHeadScope;pub use feature_pipeline::pmi::PmiAnnotation;pub use feature_pipeline::pmi::PmiAnnotationReport;pub use feature_pipeline::pmi::PmiCamera;pub use feature_pipeline::pmi::PmiDisplay;pub use feature_pipeline::pmi::PmiGeometry;pub use feature_pipeline::pmi::PmiPlane;pub use feature_pipeline::pmi::PmiPose;pub use feature_pipeline::pmi::PmiProjection;pub use feature_pipeline::pmi::PmiReport;pub use feature_pipeline::pmi::PmiState;pub use feature_pipeline::pmi::PmiStatus;pub use feature_pipeline::pmi::PmiTypeDef;pub use feature_pipeline::pmi::PmiView;pub use feature_pipeline::pmi::PmiViewReport;pub use feature_pipeline::pmi::SolidPoses as PmiSolidPoses;pub use feature_pipeline::pmi::ToleranceBlock;pub use feature_pipeline::pmi::ToleranceMode;pub use feature_pipeline::pmi::PMI_TYPES;pub use feature_pipeline::pmi::layout::present as pmi_present;pub use feature_pipeline::pmi::layout::LayoutStyle as PmiLayoutStyle;pub use feature_pipeline::pmi::layout::Presentation as PmiPresentation;pub use feature_pipeline::pmi::annotations::fcf::characteristic as pmi_characteristic;pub use feature_pipeline::pmi::annotations::fcf::Characteristic as PmiCharacteristic;pub use feature_pipeline::pmi::annotations::fcf::CHARACTERISTICS as PMI_CHARACTERISTICS;pub use feature_pipeline::assign_sketch_loop_ids;pub use feature_pipeline::flat_pattern_dxf;pub use feature_pipeline::flat_pattern_svg;pub use feature_pipeline::is_sheet_metal_handle;pub use feature_pipeline::pattern_component_instance;pub use feature_pipeline::pattern_parse_suppressed;pub use feature_pipeline::native_import_payload;pub use feature_pipeline::native_import_payload_with_appearance;pub use feature_pipeline::IsolatedSceneMetadata;pub use feature_pipeline::scene_metadata_colors_json;pub use feature_pipeline::scene_metadata_weld_colors_json;pub use feature_pipeline::family;pub use feature_pipeline::add_part_to_library;pub use feature_pipeline::add_part_to_library_impl;pub use feature_pipeline::install_parts_library;pub use feature_pipeline::missing_library_parts;pub use feature_pipeline::parts_library_json;pub use feature_pipeline::parts_library_map;pub use feature_pipeline::parts_library_revision;pub use feature_pipeline::refresh_library_entry;pub use feature_pipeline::refresh_library_entry_impl;pub use feature_pipeline::same_build;pub use feature_pipeline::follow_saved_rows;pub use feature_pipeline::follow_saved_rows_known;pub use feature_pipeline::kernel_source_stamp;pub use feature_pipeline::stable_json_hash;pub use feature_pipeline::PartsLibraryEntry;pub use feature_pipeline::PartsLibraryMap;pub use feature_pipeline::part_pin_geometry;pub use feature_pipeline::PartPinGeometry;pub use feature_pipeline::assembly::assembly_add_constraint_json;pub use feature_pipeline::assembly::assembly_apply_document_json;pub use feature_pipeline::assembly::assembly_apply_inferred_constraints_json;pub use feature_pipeline::assembly::assembly_component_entities_json;pub use feature_pipeline::assembly::assembly_dof_json;pub use feature_pipeline::assembly::assembly_infer_constraints_json;pub use feature_pipeline::assembly::assembly_inferable_types_json;pub use feature_pipeline::assembly::assembly_move_constraint_json;pub use feature_pipeline::assembly::assembly_overlay_json;pub use feature_pipeline::assembly::assembly_pose_updates_json;pub use feature_pipeline::assembly::assembly_drag_solve_json;pub use feature_pipeline::assembly::assembly_frame_solve_json;pub use feature_pipeline::assembly::assembly_remove_constraint_json;pub use feature_pipeline::assembly::assembly_resolve_refs_json;pub use feature_pipeline::assembly::assembly_run_solve_json;pub use feature_pipeline::assembly::assembly_set_constraint_enabled_json;pub use feature_pipeline::assembly::assembly_set_constraint_open_json;pub use feature_pipeline::assembly::assembly_state_json;pub use feature_pipeline::assembly::assembly_statuses_json;pub use feature_pipeline::assembly::assembly_update_constraint_json;pub use feature_pipeline::assembly::constraint_schema_catalogue;pub use feature_pipeline::assembly::assembly_add_constraint_impl;pub use feature_pipeline::assembly::assembly_apply_document_impl;pub use feature_pipeline::assembly::assembly_move_constraint_impl;pub use feature_pipeline::assembly::assembly_drag_solve_impl;pub use feature_pipeline::assembly::assembly_frame_solve_impl;pub use feature_pipeline::assembly::assembly_flip_plan_json;pub use feature_pipeline::assembly::assembly_rebase_mechanical_impl;pub use feature_pipeline::assembly::assembly_remove_constraint_impl;pub use feature_pipeline::assembly::assembly_run_solve_impl;pub use feature_pipeline::assembly::assembly_set_constraint_enabled_impl;pub use feature_pipeline::assembly::assembly_set_constraint_open_impl;pub use feature_pipeline::assembly::assembly_update_constraint_impl;pub use feature_pipeline::assembly::assembly_session_export;pub use feature_pipeline::assembly::assembly_session_import;pub use feature_pipeline::assembly::assembly_session_serial;pub use feature_pipeline::assembly::RetiredSession;pub use feature_pipeline::assembly::SessionTransfer;pub use feature_pipeline::AssemblyState;pub use feature_pipeline::ConstraintEntry;pub use feature_pipeline::assembly::pose_params_to_transform;pub use feature_pipeline::assembly::transform_to_pose_params;pub use feature_pipeline::part_mount::is_identity as mount_is_identity;pub use feature_pipeline::part_mount::mount_aligned_to_footprint;pub use feature_pipeline::part_mount::mount_block_of;pub use feature_pipeline::part_mount::mount_from_block;pub use feature_pipeline::part_mount::mount_origin_to;pub use feature_pipeline::part_mount::mount_seated_on;pub use feature_pipeline::part_mount::part_mount;pub use feature_pipeline::part_mount::reference_plane as mount_reference_plane;pub use feature_pipeline::part_mount::AlignPad;pub use feature_pipeline::part_mount::AlignReport;pub use feature_pipeline::part_mount::AlignSeat;pub use feature_pipeline::part_mount::MOUNT_BLOCK;pub use feature_pipeline::feature_schema_catalogue;pub use feature_pipeline::assembly::constraint_type;pub use feature_pipeline::assembly::ConstraintTypeDef;pub use feature_pipeline::assembly::CONSTRAINT_TYPES;pub use feature_pipeline::assembly::FIXED_IS_NOT_A_CONSTRAINT;pub use feature_pipeline::feature_context_applicable;pub use feature_pipeline::SelectionProbe;pub use feature_pipeline::Env;pub use feature_pipeline::format_expressions;
Modules§
- face_
refusal_ slugs - The slugs of the direct-edit refusals the app explains to a user (its
face-transform help,
BREP_render::face_transform_help), shared by each mint and byface_transform_reason. - feature_
pipeline - Feature-history execution with exact name resolution and stable output names.
- gears
- Gear sections and gear solids.
- mill_
dome - A ball-end mill held square to a dome: what its finishing passes leave, read along rays from the dome’s centre.
- mill_
envelope - The lower envelope of a ball-end mill’s moves: the surface it leaves on the stock’s top.
- mill_
faces - The block a ball-end mill leaves: the box below the mill’s lower envelope (the third piece of the ball-end raster construction).
- mill_
plan - The plan of a ball-end mill’s lower envelope over a box: which surface is lowest where, as a graph of exact boundary curves (the second piece of the ball-end raster construction; the faces are built on it next).
- parasolid
- Parasolid XT (transmit file) import.
- refit_
refusal_ phrases - The phrases a Refit Faces refusal is recognised by (formatted into every refusal that carries it, so a reader and the mint share one definition).
- solidworks
- SolidWorks parts (
.sldprt) and assemblies (.sldasm): import.
Macros§
- debug_
flag - One debug, trace or
BREP_NO_*flag (consolidation S1): on when its variable is set to anything but0,offorfalse.debug_flag!(live "BREP_X")reads it on every call. - env_
read - One environment variable read through its call site’s once-cell
([
env_read::read], lane O row 19):std::env::var(name).ok()as anOption<Cow<str>>, kept for the process whenBREP_ENV_READ_ONCEis on. Only for variables nothing sets at run time. - mode_
switch - One
0|off / check / onmode (consolidation X1): an [env_read::Mode]; unset,Onwhendefault_onandOffotherwise.mode_switch!(live "BREP_X", default_on)reads it on every call. - switch
- One on/off switch (consolidation S1):
switch!("BREP_X", default)readsBREP_Xthrough its call site’s once-cell ([env_read::switch], kept for the process whileBREP_ENV_READ_ONCEis on);switch!(live "BREP_X", default)reads it on every call, for a variable a probe sets at run time. One grammar (owner decision 2026-11-01):0|off|falseoff,1|on|trueon, unset or anything else the default. In the kernel’s tests one keyed override (env_read::with_switch_for_test) forces either form.
Structs§
- Aabb
- Affine
Transform - Approximation
- A MEASURED approximation a SUCCESSFUL result carries: the result stands, and this says by how much, and why, it is not exact. Distinct from a refusal (the result does not stand) and from a fulfilment (what was done of what was asked) — the typed-refusal plan’s third kind of report.
- Approximation
Budget - The spent budget of an unmet construction request, typed: why refinement stopped, and the rounds and stations it used against their limits.
- Arena
Coedge - Arena
Edge - Arena
Face - Arena
Loop - Arena
Shell - Arena
Vertex - Arrangement
Piece - Arrangement
Region - Assembly
Body - One rigid body of the assembly with its initial (guess) pose.
- Assembly
Mate - One mate between two distinct bodies of the assembly.
- Assembly
Solution - Assembly
Solve Options - Bend
Station - One station’s tight-bend reading: what the path does there and how far the section reaches into it.
- Blend
Selection - What a blend selection actually achieved.
- Blend
Timing - One ledger entry: the measure’s name, its accumulated milliseconds
(zero for a
count.*entry) and how many times it was recorded. - Body
Appearance - One imported body’s appearance: an optional body-wide colour plus an optional colour per FACE.
- Body
Freedom - How free one body is left: free turns (rotations about its own origin) and the remaining free slides (pure translations). Both zero = fully defined.
- Body
Pose - Solved pose of one body (same order as the input
bodiesslice). - Boolean
Options - Boundary
Foot - A point of the boundary near a query point.
- Brep
Solid - Bvh
- Static BVH over per-item boxes; queries return indices into the slice the tree was built from.
- Carrier
Deviation - Everything an offset carrier’s construction MEASURED about itself.
- Carrier
Dimensions - A carrier’s classification and its named dimensions in display order
(millimetres, or degrees for an angle key ending in
Deg). - Carrier
Extension - How far an offset carrier’s TRIM grows past the source face at each of its four parametric sides, in world units.
- Cell
Record - A declared closed region of a Cellular body. Face senses are relative
to the body’s face records; a shared wall has opposite senses in its
two cells.
voiddistinguishes a void region from material. - Certificate
Scope - Explicit scope of an opt-in analytic pair scan. Original counters describe only examined pairs. Same-face fold work is retained in this first row.
- Certified
Face Pair - Separating support of one omitted distinct-face pair. Bounds are signed coordinates on the named world axis; no adjacency inference is involved.
- Chamfer
Options - How
chamfer_edges_with_optionsreads a selection. - Chart
- One cube-face chart:
direction(s, t) = normal + s·tangent_s + t·tangent_t, withtangent_s × tangent_t = normal, so∂p/∂s × ∂p/∂tpoints OUT of the sphere everywhere on the chart. - Chart
Segment - One piece of a trim polyline, already confined to a single chart.
- Coedge
Id - Coedge
Record - Compat
Work - What a compatibility pass had to do to one curve. Reported, never inferred: a caller that promises “bit for bit” needs to see a zero here.
- Connectivity
Report - Outcome of
solid_connectivity. - Control
Cage - The cage: see the module docs for the layout.
- Coons
Report - What the constructor had to do, and what it measured doing it.
- Crossing
Repair Record - One self-crossing this module REPAIRED rather than refused.
- Curve
Curve Intersection - Curve
Projection - Curve
Surface Intersection - Cycle
Use - Deform
Pick - One interpolation pick.
- Deform
Result - A deformed surface and what the solve measured.
- Deform
Spec - Density
Mass Properties - Mass properties scaled to a physical density (Golovanov §8.11). The
underlying
FullMassPropertiesis a UNIT-density geometric result; heremass = density * volumeand every inertia quantity scales linearly with density (inertia = density * geometric_inertia). The centroid and the principal AXES are density-independent; only the principal MOMENTS and the mass scale with density. - Diagnostic
Event - Display
Edge - One edge of a
SolidDisplay: its polyline (the same samples the faces’ boundaries use) and the indices intoSolidDisplay::facesof the faces it bounds, one per use. - Display
Face - One face of a
SolidDisplay: its own vertices, the surface’s outward normal at each, and its triangles over them (counter-clockwise outward). - Display
Solid Payload - Everything the native renderer needs to display one resident solid.
- Edge
Chord Error - Failure to certify an edge’s requested chord tolerance.
- EdgeId
- Edge
Split Record - Entity
Tolerances - Lazily-measured, capped per-entity tolerances for one solid.
- Euler
Report - Outcome of
solid_euler. - Face
Crossing - One confirmed face-versus-face crossing.
- Face
Deform Pick - One pick on the face: the surface point nearest
anchor(which must lie on the face) is moved totarget; withnormal, the face’s normal there is made parallel to it. - Face
Deform Report - What the deformation did, measured on the result.
- Face
Deform Spec - Face
Fold - One confirmed place a face FOLDS THROUGH ITSELF in 3D: its own surface carries two DISTINCT trimmed parameter feet to ONE point in space.
- Face
Fragment Record - FaceId
- Face
Imprints - FaceKey
- Face
Pcurve - Face
Record - Face
SetIdentity - The 128-bit content identity of a solid’s face set.
- Face
Vector Area - One face’s vector area
∫ n dA, as its TRIMS claim it and as its EDGES claim it, and the difference between the two. - Fillet
Options - How
fillet_edges_with_optionsreads a selection. - Fragment
Coedge - Fragment
Loop - Fragment
Order - What orders a face’s fragments (lane X, fillet-bore-notch): the outer area of the fragment’s region in the face’s parameter plane, the key the arrangement returns regions by, and the region’s topological key, the sorted (chain, segment) list of its outer loop, then the sorted lists of its holes. The topological key reads no coordinate.
- Frame
Curve - A frame riding a cubic Bézier curve (
control, in a plane square toup): its origin on the curve, its first axis along the curve’s tangent,upfixed. The tool is given in the frame at the curve’s start and carried by it over the whole curve. - Full
Mass Properties - Gear
Data - Derived data of a generated gear (diameters in model units).
- Gear
Section - A closed gear section in the z = 0 plane, counter-clockwise about +z.
- GlbReport
- What one written file contains — the counts a caller reports or asserts on.
- GlbSolid
- One solid to write: its display mesh plus the colours it is shown in.
- Gordon
Report - What the constructor had to do, and what it measured doing it.
- Guide
Loft Wall - Which wall a side face of a loft along guide chains is: the faces of the solid come one for each of these, in this order, and then the flat ends.
- Helical
Gear - A helical (or, with
herringbone, double helical) external gear given by its normal-section values;spurcarries them (module = normal module, pressure angle = normal pressure angle, coefficients × normal module). - Iges
Body - One body to write: its name, the solid, and an optional sRGB colour.
- Iges
Import Report - What
import_iges_reportreturns: the solids, and the diagnostics the STEP lane measured while building them, merged over every body. - Image
Curve - The 3D image of a pcurve on a surface, plus the parameter range that matches the pcurve’s own domain fraction for fraction.
- Imported
Color - An imported display colour: sRGB components in 0..=1, kept as read.
- Imported
Step - What
import_step_bodiesreturns: the bodies, their colours, and the typed approximations the closure gate attached to some of them. - Imprint
Options - Imprint
Piece Record - Imprint
Result Record - Not exhaustive: a new field is not a breaking change. Outside this crate,
start from
ImprintResultRecord::default()and set the fields you need. - Imprint
Vertex - Interference
- How two solids meet, as they stand: the volume they share and the gap between them.
- Kernel
Diagnostics - Kernel
Outcome - Kernel
Refusal - A kernel REFUSAL: the fail-safe contract’s carrier. The kernel never
degrades a result; where it cannot certify one it refuses, and this is the
refusal — a closed
RefusalClassthat consumers dispatch on (the boolean’s perturbation-retry gate, the CI baseline’s per-class diff), the stage that minted it, and the human text, whichDisplayprints verbatim so every message a user or a test saw before typing is unchanged. - Kernel
Tolerances - Ordered accuracy targets plus deliberately separate geometric search radii.
- Kind
Report - Outcome of
topology_kind: the kind and the census it was read from. - Knot
Vector - Loop
Crossing - One place a face’s trim loop crosses ITSELF in the face’s parameter domain.
- Loop
Crossing Report - Outcome of
loop_self_crossings. - LoopId
- Loop
Record - Mass
Caller - Names the call site for every integrator call made while it is alive, so
the
mass.identityline can say WHO paid for the integral rather than leaving a log reader to infer it from the neighbouring profile lines. - Mass
Properties - Mass
Properties Cache - A bounded, per-solid memo for exact area and volume. Geometry edits are detected by the face-set content identity; callers never invalidate it. The contents are private so external code cannot supply a fabricated result.
- Mate
Axis - An axis in a body’s local frame (origin + unit direction).
- Mate
Curve - A curve a curve mate follows, in its body’s LOCAL frame: an edge’s carrier
over the edge’s parameter range
[t0, t1]. - Mate
Plane - A plane in a body’s local frame (origin + unit normal).
- Mate
Residual Report - Worst absolute residual row of one mate at the solution.
- Measured
Offset Surface - A fitted offset carrier together with what its construction measured about itself.
- Measured
Tolerance - A deviation measured between a constructed entity and the geometry that entity was built to reproduce, recorded next to the derived band it was judged against.
- Mesh
- Mesh
Region - One smooth region of the mesh with its recognized carrier and fit
residuals (residuals are zero for
Freeformregions — no fit). - Mesh
Repair Report - What
repair_triangle_souphad to change to close the input. - Mesh
Segmentation - Segmentation result:
triangle_region_ids[t]is the region id of input trianglet(index intoregions;UNASSIGNED_REGIONfor degenerate triangles with no assignable neighbor). - NSided
Report - What an N-sided fill built and measured.
- Nurbs
Curve - A rational B-spline curve.
- Nurbs
Surface - A rational B-spline surface.
- ObjRead
Result - OffCarrier
Edge - One edge whose built curve stands off one of its carriers, as an
Approximationnames it. - Offset
Evaluator - The pointwise offset evaluator, bound to one carrier and one orientation convention.
- Offset
Face Carrier - Offset
Sample - One evaluation of the offset: the source point, the unit normal the offset rides, and the offset point itself.
- Offset
Shell Face Image Record - Offset
Shell Result Record - Oracle
Report - Outcome of
boolean_semantic_disagreement. - Path
Joint - ONE joint of a resolved path: which two segments meet there, how continuously
(
JointContinuity), and the two measurements that decided it. - Pcurve
Fit - A fitted pcurve with what the fit achieved.
- Pcurve
FitLedger - Per-operation tally of pcurve fits and how many missed their floor.
- Pcurve
FitReport - What a pcurve fit ACHIEVED, returned beside the curve so a ceiling exit can never be mistaken for a met floor.
- Pcurve
FitScope - An open tally of the pcurve fits made on this thread — see
PcurveFitLedger. Open it where an operation starts,closeit where the operation returns its diagnostics; a?that unwinds past it drops the tally. - Point
Classification - Pole
Support - One control point’s support, as
deform_surface_whereshows it. - Polyline
Fit - Polyline
FitLedger - Per-operation tally of polyline fits and how many missed their tolerance.
- Polyline
FitReport - What a polyline fit ACHIEVED, returned beside the curve so a budget exit can never be mistaken for a met tolerance.
- Polyline
FitScope - An open tally of the polyline fits made on this thread — see
PolylineFitLedger. Open it where an operation starts,closeit where the operation returns its diagnostics; a?that unwinds past it drops the tally. - Profile
Anchor - The placement anchor a path sweep transplants its profile with: the plane
frame
(origin = boundary-sample centroid, normal, pu, pv)the station loop maps profile points through (local = p − origin→station + ri·(local ·pu) + si·(local·pv)). Extracted as data so a HOLE loop can sweep with its OUTER loop’s anchor — sweeping each loop with its OWN centroid would re-center every loop onto the path and lose the hole’s in-plane offset. - Pyramid
- A frustum of a pyramid: the convex polygon
section(corners in order, in the plane square toaxisat distanceatfromapex, coordinates alongx_axisandaxis × x_axisfrom the axis’s point there), the pyramid fromapexover it, cut off by the planes square toaxisat distancesfromandtofrom the apex. - Rack
- A straight-toothed rack: the basic rack profile of
teethteeth along +x from x = 0, the pitch line on y = 0, teeth pointing +y, extruded along +z. Each end stops in the middle of a tooth space. - Radius
Law - A composable radius law over cumulative abscissa
[0, total_length]. - Recognized
Circle - Refit
Report - What a successful refit measured and built.
- Regularity
Report - What a certificate cost: Bézier pieces, boxes judged, C0 knot lines checked.
- Residual
Fusable - One
boolean_residual_fusablesfinding. - Restored
Snapshot - The output of
restore_solids: solids in snapshot order plus the captured scene-metadata records (entity name -> own record), NOT stamped into the store — see the metadata seam in the module doc. - Restored
Solid - One restored solid: its scene name plus the exact topology/geometry.
- Revolution
Frame - Revolution
Structure - Frame, generatrix, and sweep of any surface built by
make_revolution(full or partial), validated by exact reconstruction. UnlikeAnalyticSurfacethis does not require the generatrix to be a line or classic quadric profile. - RibNames
- What a rib calls its faces: the feature id every name starts with, and the
source name of each profile curve (
{sketchId}:G{gid}for a sketch segment), index-aligned with the profile. - Ribbon
Report - The measured continuity of a ribbon patch. Read
Self::cross_derivative_residualbefore calling anything G1: it is the number that says whether the prescribed cross-derivative field was actually met. - Ring
Gear - An internal (ring) gear: involute tooth spaces cut into the inside of a ring. Lengths in model units, angles in radians, coefficients × module.
- Rising
Turn - A turn about an axis whose rise along it grows as it turns: turned by t
(radians, right-handed about
axis_direction) the tool has risenrise[0] t + rise[1] t², for t fromfromtoto(a variable-lead screw). - Route
Reading - What a Move Face would have to do to the TOPOLOGY, read off the motion before anything is built.
- Screw
Step - One elementary motion, linear in the motion parameter
t: a turn ofturn·tradians, right-handed about the axis throughaxis_originalongaxis_direction, together with an advance ofadvance·talong it. A turn alone isadvance = 0, a slide alone isturn = 0. - Segment2
- Segment
Options - Options for
segment_mesh_faces. All tolerances are dimensionless or in degrees; distances derive from the region/mesh scale so the segmentation is size-invariant. - Self
Intersection Options - Knobs for
solid_self_intersections.SelfIntersectionOptions::for_solidderives every one from the solid’s own size. - Self
Intersection Report - Outcome of
solid_self_intersections. - Semantic
Disagreement - One point where the result’s membership contradicts the CSG expectation.
- SewReport
- Shell
Connectivity - One shell’s connectivity: how many edge-connected pieces its faces form.
- Shell
Deform Pick - One pick: on face
face_id, the surface point nearestanchor(inside the face) moves totarget; withnormal, the normal there is made parallel. - Shell
Deform Report - What the deformation did.
- Shell
Deform Spec - ShellId
- Shell
Options - How
offset_shell_with_optionsanswers whatoffset_shelldecides by convention. The default isoffset_shell’s answer throughout. - Shell
Vector Area - One shell’s vector-area closure:
shell_vector_areas’ per-shell verdict. - Sketch3d
Constraint - A 3D sketch constraint, kept as a transparent map so authoring metadata (expression text, label offsets) persists exactly.
- Sketch3d
Constraint Type - One constraint type: its
typestring, how many point ids it takes, whether it carries avalue, and a one-line meaning (the editor’s palette reads these; the solver dispatches on the string). - Sketch3d
Diagnostics - The solver’s read-only diagnostics: the same shape the 2D sketch solver
publishes (
dof,rank,unknowns,equations,redundant,status,conflicting,conflictingConstraints,pointMobility,geometryMobility), so the editor’s readouts are shared. - Sketch3d
Doc - The editable 3D sketch document.
- Sketch3d
Geometry - A 3D sketch geometry (see the module doc for the point layouts).
- Sketch3d
Point - A 3D sketch point: world coordinates plus the role flags the solver tracks.
- Sketch3d
Solve Options - Sketch
Solver Settings - Solver tuning knobs. Defaults mirror constraintDefinitions.
- Solid
Classifier - Point-in-solid classification with per-solid precomputation: face bounds, the solid box, and a face BVH are built once so repeated queries (boolean fragment selection asks once per fragment) prune to the few faces a probe point or ray can actually touch.
- Solid
Display - A solid as a viewer draws it (see the module docs). Seams, where a face meets itself, are kept apart from the edges between faces.
- Solid
Motion - A rigid motion: the steps applied in order (the first to the tool first),
for
tfromfromtoto. - Solid
Names - Solve
Sketch3d Request - The JSON request: the document plus optional solver options.
- Solve
Sketch Request - Sphere
Atlas - A sphere’s pole-free cube atlas: centre, radius, and the right-handed basis the six charts are built on.
- Spherical
Region - The trim of a spherical face, as directed boundary arcs on the unit sphere, ready to classify points without touching any chart or parameter domain.
- Sprocket
- A roller-chain sprocket (ISO 606 tooth form; ANSI chains are its A series).
- Spur
Gear - An external spur gear generated by a standard rack cutter. Lengths in model units, angles in radians; coefficients are multiples of the module.
- Station
Budget - What the sampler did to reach its stations.
- Step
Assembly - A STEP file’s product structure, with geometry, and without a single transform applied to it.
- Step
Assembly Export - A document’s product structure, ready to write. Exactly one product must be a root (never an occurrence child) — the document itself.
- Step
Body Trim Readings - Step
Colors - Display colours to write as presentation styles, keyed by SCENE NAME.
- Step
Edge Reading - Step
Export Occurrence - One placement of
childinsideparent— aNEXT_ASSEMBLY_USAGE_OCCURRENCE. - Step
Export Product - One product of an exported structure: a part, a sub-assembly, or the root
document.
bodiesare in the product’s OWN local frame — never posed. - Step
Export Report - The AP242 document plus what the writer measured while producing it.
- Step
Face Reading - Step
Import Report - What
import_step_reportreturns: the bodies, how gracefully the file imported, and the import’s diagnostics. - Step
Occurrence - One occurrence: a placement of
childinsideparent, from a NAUO edge or a mapped item. - StepPmi
- The PMI to write: the document block and the tail’s resolution of it.
- Step
Product - One node of the file’s product structure: a PRODUCT_DEFINITION, or a
representation that a MAPPED_ITEM instantiates and no product definition owns
(
bodies::representation_owner_index). - Step
Supplied Trim - A vendor pcurve evaluated through the vendor’s own surface.
- Step
Trim Readings - Every flat body of one STEP document, with the per-edge provenance.
- StlRead
Result - StlTriangles
- The facets of an STL in file order, before any welding.
- Surface
Classify Data - Per-surface data the pair classifier needs, precomputable once per face and reused across every pair that face participates in.
- Surface
Intersection Curve - Surface
Intersection Options - Surface
Pair Classification - Surface
Projection - Surface
Tie - Surfaces
aandbshare their boundary sidesside_aandside_b;reversedwhen the two sides run opposite ways along the edge. - Sweep
Clip - The region the result must agree with the sweep in, about an axis: levels
(distance from the axis) in
radius, axial positions inaxial(measured fromaxis_origin), and polar angles inangle(fromreference, right-handed about the axis), when given. - Sweep
Closure - What a CLOSED sweep did to make its section meet itself after one lap — the applied twist the frame-closure policy REPORTS.
- Sweep
Path - A resolved sweep path AND its classification: the ordered, head-to-tail curves, the name of each, whether the run is CLOSED, the PLANE it lies in if it lies in one, and the continuity of every joint — the closing one included.
- Sweep
Station Report - The measured bound a station sweep carries.
- Swept
Chain - A swept solid with the MEASURED BOUND of its construction
(
SweepStationReport):Nonewhere the construction is exact — the mitre lane (exact pieces on bisector planes) and the envelope lane (a revolve) — and the station lane’s report otherwise. - Swept
Envelope - The recognized configuration: a circular section on a circular planar path, tight enough that the envelope crosses itself.
- Tangent
Contact - A tangential contact between two carriers, refined onto the contact and classified by the rank of the height-difference Hessian there.
- Tangent
Section Record - One extended tangential contact the imprint recognised (see
ImprintResultRecord::tangent_sections). - Tessellation
Options - Three
MfBeam - Beam parameters retained as non-solid data, in object-local millimetres. Apply the containing instance’s full affine transform to the beam surface; transforming only the endpoints/radii is insufficient for shear or scaling.
- Three
MfBeam Lattice - A lattice retained independently of the triangle soup, never claimed as a solid.
- Three
MfInstance - One placement of one mesh: a
<build><item>, or a<component>reached through one, with the transforms from the item down composed. - Three
MfMesh - One
<object>’s mesh, in millimetres and in the object’s own coordinates. Shared: an object placed three times is ONE entry here and threeThreeMfInstances. - Three
MfRead Result - Everything
read_3mfrecovered from a package. - Three
MfSolid - One solid to write: its display mesh plus the colours the document gave it.
- Three
MfTexture - A packaged PNG and its sampling settings. Pixels remain encoded.
- Three
MfWrite Report - What one written package contains — the counts a caller reports or asserts on.
- Tied
Result - Tied
Surface - One surface of a tied deformation: its picks, holds and room in
spec(picks may be empty), and which of its control points may move. - Topology
Arena - Type-safe mutable topology used inside the kernel. The JSON/WASM record model remains the stable wire format; conversion happens at that boundary.
- TwoTurns
- Two turns driven by one parameter t: first by
rates[0]·tabout the first axis (point, direction), then byrates[1]·tabout the second; both axes fixed in the world; t fromfromtoto. - Undecided
Crossing - One candidate the scan could not decide, after resolution.
- Union
Find - Deterministic union-find (smallest index wins as representative).
- Validation
Report - Vec2
- Vec3
- Vec4
- Vector
Area Report - Outcome of
shell_vector_areas. - Vertex
Id - Vertex
Weld - A tolerance weld over points given one at a time (
weld_vertexwith its own vertex list and cells), for callers outside the kernel. - Wasm
Brep Solid - Wasm
Mesh Buffers - Tessellation output as typed arrays; getters consume the buffers.
- Wasm
Nurbs Curve - Wasm
Nurbs Surface - Wasm
Solid Buffer - A solid encoded as one flat
Float64Arrayplus a tiny JSON side channel for face/edge names — the zero-JSON result path for topology-heavy ops. Getters consume the buffers (each may be read once) to avoid double copies.
Enums§
- Analytic
Surface - Backing
- What a refusal’s evidence establishes about the claim every refusal
judges: “this input has a result the kernel can certify”. A refusal is
either REFUTED — a witness in the input itself disproves the claim, and no
re-run of the construction can change that — or UNDECIDED — the
construction failed to certify and the input has not been shown to be at
fault. Retry policy reads this, never a list of variants: a refuted claim
is never retried, and only one undecided cause is one a perturbation
addresses (
UndecidedCause::Degeneracy). - Body
Kind - The kind a body DECLARES, as distinct from the kind
topology_kindREADS from its edge uses. Nothing infers it: a producer sets it, the wire carries it, and consumers that branch by kind (the boolean’s operand gate first) read the declaration. Every body built today isSolid, the default, and a Solid serialises byte for byte as before: the JSON skips the key, the flat codec keeps its version-1.0 header (solid_codec.rs). - Boolean
Operation - Boundary
Place - Where a boundary foot lies: inside one face, on one edge, or at a vertex.
- Budget
Mechanism - The budget mechanism an
ApproximationBudgetcounts. - Budget
Reason - Why a construction request stopped short of what it asked.
- Cage
Point - Where a linear point index lands in the cage.
- Cage
Primitive - The primitive the initial cage is wrapped around.
- Chart
Side - Which side of a chart square a cube edge is: the chart’s other coordinate runs along the edge.
- Closure
Reading - What a shell’s closure scan came back with — a measurement, or nothing.
- Containment
Lane - The lane
containment_lanefinds a face in. - Coons
Refusal - A Coons constructor’s refusal, with the measurement that caused it.
- Crossing
Confirmation - Which confirmation convicted a
FaceCrossing. - Crossing
Undecided Cause - Why the mesh confirmation left a candidate undecided.
- Deform
Refusal - Deform
Side - The four sides, in the order
DeformSpec::holdlists them. - Diagnostic
Severity - Edge
Chord Failure - Edge
Hold - What a boundary side keeps.
- Edge
Origin - Extend
Refusal - Why a natural extension produced nothing. Each variant carries what was measured, so a caller can report the number rather than the verdict.
- Face
Transform Reason - Why a Transform Face refused, as far as the app explains it — read off the
refusal’s CLASS and slug, never its text, so a reworded refusal keeps its
explanation and a refusal that merely mentions “parallel” does not borrow
one.
Noneis every other refusal: the app shows the kernel’s own words. - Fragment
Edge Source - GlbUp
Axis - Which axis of the CALLER’s world points up, and therefore what rotation the root node carries to reach glTF’s own right-handed +Y-up frame.
- Gordon
Refusal - A Gordon constructor’s refusal, with the measurement that caused it.
- Hand
- Hand of a helical gear’s teeth.
- Image
Curve Tier - Which lane produced an
ImageCurve. - Irregularity
- Why a surface is not certified regular. Points are in the surface’s own parameters.
- Issue
Kind - The closed kind of a
ValidationIssue. Only the kinds a dispatcher needs are minted (the boolean’s endpoint-gap repair lane keys onCurveVertexGap); everything else isOtherand carries its message as the payload. A dispatcher matches the kind, never the message text. - Joint
Continuity - How continuous a path is AT ONE JOINT — the classification every sweep refusal reads instead of re-deriving the same angle from the curves.
- Kernel
Stage - Knot
Direction - Which parameter direction a knot is inserted in.
- Knot
Refinement Refusal - Why a knot refinement was refused. The surface is never changed in part.
- LawSegment
- One user segment of a composite radius law, spanning
lengthof abscissa. - Linear
Algebra - The LM step’s linear algebra (see
AssemblySolveOptions::linear_algebra). - Mate
Align - Direction-sense handling for direction-carrying mates. Mirrors the app’s “oppose normals” flag on parallel/coincident constraints.
- Mate
Kind - Mate geometry + semantics. All points/directions/planes/axes are expressed
in the OWNING body’s local frame (
*_aonbody_a,*_bonbody_b). - Measured
Component - What a request report’s
measuredvalue is the reading of. - Mill
Move - A level move of the cutter’s axis, in the plane of the level (x, y).
- NSided
Refusal - Why an N-sided fill was refused.
- Offset
Corners - How the offset body closes the joins between offset faces.
- Offset
Face Role - Offset
Normal - Which unit normal the offset rides, and how it is recovered where the parametric normal degenerates.
- Offset
Surface Lane - Which branch of
offset_surfacebuilt a carrier — and, with it, whether comparing that carrier against the pointwise offset at the same(u, v)is even the right question. - Outline
Piece - One piece of a planar outline, in the outline’s own 2D coordinates.
- Pcurve
FitExit - Why a pcurve refinement stopped. Only
PcurveFitExit::Convergedmeans the floor was met; every other variant is a BUDGET exit, and the report’s residual was measured on the returned curve rather than assumed. - Point
Class - Polygon
Class - Polyline
FitExit - Why a polyline fit’s refinement stopped. Only
PolylineFitExit::Convergedmeans the tolerance was met; every other variant is a BUDGET exit whose deviation was measured on the curve actually returned. - Refit
Carrier - The fitted surface, in the recognition pass’s terms.
- Refit
Surface Kind - The surface family a Refit Faces fit is asked for.
- Refusal
Class - The closed set of refusal classes. Dispatchers match on it exhaustively; adding a variant is a deliberate taxonomy change, never a message edit.
- Region
Carrier - Recognized analytic carrier of a region. Axis directions are unit
vectors;
senseis+1when the mesh normals point along the carrier’s outward normal (away from the axis/center) and-1for a cavity. - Residual
Kind - A single residual fusable — coincident geometry the assembler left unwelded.
- Resolve
Error - Typed resolution failure.
Self::statusmaps each variant onto the constraint status vocabulary so the constraint lifecycle reports it without string-matching messages. - RibExtrusion
- Which way a rib grows out of its sketch — SolidWorks’ Extrusion Direction control, and the same two choices it offers.
- Section
Placement - HOW a section is placed at each station — the two things “sweep a profile along a path” can mean, and the reason they are not the same shape.
- Selection
Geometry - A resolved analytic selection frame, in the coordinate space of the solid
it was resolved from (module docs: pass the component’s world→local inverse
to
Self::transformedfor the solver’s component-local mate inputs). - Sketch3d
Resolved Reference - What a model reference resolves to, in the shapes the sketch materializes.
- Solid
Tool - A tool the whole sweep takes.
- Solve
Strategy - Solving strategy (§7.5–7.6).
Autodecomposes when possible and falls back to the monolithic solve when it must, so it is always safe. - Soundness
Defect - What the soundness scan found in a result it refused.
- Split
Surface - A closed analytic tool region used to cut a body. Each variant is realised as a closed solid (unbounded carriers are capped well beyond the body) whose interior is one side of the analytic surface.
- Sprocket
Form - Which ISO 606 tooth form a sprocket is cut to.
- Step
Body Error - Why one body did not import: the builders’ legacy text, or a TYPED refusal
from the one gate that mints one today, the shell-closure gate
(
builder/closure.rs). The class rides to the feature boundary throughimport_step_bodies; every other producer inside the importer still returns text and is preserved verbatim (typed-refusal plan, item 1). - StlError
- Why STL bytes are not a readable STL.
- StlFormat
- Encoding detected while reading an STL.
- Surface
Pair Relation - Surface
Side - Which boundary of the parameter square an extension grows from.
- Swept
Tool - The moving tool.
- Symmetric
Element - One side of a
MateKind::Symmetricmate, in its owning body’s frame. - Tessellation
Error - A checked tessellation either meets its edge chord budget or names the failing edge. Errors from face triangulation retain their original detail.
- Three
MfAppearance - Lossless per-corner appearance, in triangle winding order.
- Three
MfError - Why a 3MF package was refused. Every variant that belongs to a package part names it, so the message says where in the container the fault is.
- Three
MfUnit - The
unita model part declares, with its conversion to millimetres. - TieContinuity
- What a tie kept across its edge.
- Topology
Kind - Undecided
Cause - Why an undecided refusal is undecided — what the evidence lacked. The boolean’s Simulation-of-Simplicity retry acts on exactly one of these.
- Weight
Site - Where a non-positive weight was found.
Constants§
- APEX_
SWEEP_ REFUSAL - The prefix of every refusal of this operation.
- CAGE_
DEGREE - The B-spline degree in both directions: bicubic, the subdivision-surface smoothness (C² everywhere a knot is simple).
- CHART_
COUNT - Charts in the atlas: one per cube face.
- COLOR_
METADATA_ KEY - The scene-metadata key an imported colour is stamped under. ONE spelling.
- COVERING_
RIM_ STRIP_ SWITCH BREP_COVERING_RIM_STRIP: set to"0", the covering-rim-strip lane declines every face. Read when a face is prepared; part of the cache key.- CUBE_
CORNER_ COUNT - Cube corners, each shared by exactly three charts and three cube edges.
- CUBE_
EDGE_ COUNT - Cube edges, each shared by exactly two charts.
- DISAGREEMENT_
THRESHOLD - A boolean is FLAGGED structurally wrong when its decidable-point disagreement rate exceeds this. Tuned from the measured spread (fixed-seed, so these numbers are stable): every KNOWN-GOOD boolean scores ≤ 0.7% (a handful of stray points on the fused seam of tangent/glue unions), benign doubly-curved cases (sphere/torus tubes) top out near 1.7%, while a genuine structural defect — a mis-selected fragment, a lost overlap region, an opened shell — flips a whole region and scores ≥ 7%. The 3% line sits cleanly in the gap: above the near-boundary noise the On-skip + threshold are meant to absorb, well below any real wrongness. One named constant so the audit, the tests, and the stress binary share a single definition of “wrong”.
- DRAFT_
ROOF_ REFUSAL - The prefix of every refusal of this operation.
- EDGE_
CAP_ FRACTION - Fraction of an edge’s own length that bounds its measured band.
- EXTENDED_
RANK_ FLOOR - Smallest
min|λ| / κofH = II_a − II_bat which the contact counts as an isolated node or point rather than EXTENDED alongH’s null direction. The same numbercsg/imprint/tangent_contact.rsreads: genuine nodes measure0.7..1.0, extended contacts1e-15and below, so this is a rank test, not a tolerance band. - EXTRUDE_
UP_ TO_ REFUSAL - The prefix of every refusal of this operation.
- GLB_
MAGIC glTFas a little-endianu32— the first four bytes of every GLB.- HORIZON_
CONTAINMENT_ SWITCH BREP_HORIZON_CONTAINMENT: set to"0", the wrapped-horizon lane declines every face. Read when a face is prepared; part of the cache key.- HORIZON_
CROSS_ FRAME_ SWITCH BREP_HORIZON_CROSS_FRAME: set to"0", the wrapped-horizon lane combines its period images per image (Inside when any image counts odd) instead of summing each loop’s parity over the images. Read per QUERY, not when the face is prepared; seehorizon_cross_frame.- HORIZON_
SINGLE_ LOOP_ SWITCH BREP_HORIZON_SINGLE_LOOP: set to"0", the wrapped-horizon lane declines a face of one or two loops (compared:face.loops.len() <= 2). Read when a face is prepared; part of the cache key.- KNOT_
DEDUP_ EPS - Numerical knot DEDUP epsilon (parameter-space): the tighter floor used when
counting distinct knots (SSI/CSI
interior_knot_count) or comparing whole knot vectors for exact reconstruction (analytic surface recognition). This answers “are these two knot floats the same value?”, NOT “are these the same knot for snapping?” — so it stays at 1e-12 and must NOT be unified with the looserKNOT_IDENTITY_TOL. - KNOT_
IDENTITY_ TOL - Knot IDENTITY tolerance (parameter-space): two knot parameters within this
absolute band are treated as the SAME knot for snapping — insert_knot,
NurbsCurve::split, monotonicity and clamp checks. This is the single source for the “absolute 1e-9 knot tolerance” thatsplitenforces and that imprint’s trim guards mirror. Distinct in PURPOSE (not just value) fromKNOT_DEDUP_EPS; the two are deliberately NOT unified. - LOFT_
ON_ GUIDES_ REFUSAL - The prefix of every refusal of this operation.
- MAXIMUM_
FOLD_ ANGLE - The largest angle the extension’s cross-boundary tangent may turn through before the extension is called a FOLD. π/2 is the sign change: past it the extension has stopped going outwards and is doubling back over the patch it came from, which is never a usable carrier.
- MAXIMUM_
GROWTH_ RATIO - The largest the appended strip may be, as a multiple of the surface’s own
3D extent in the direction being extended: the extension may not be longer
than the surface it continues. A polynomial extrapolated by a fraction
rof its own span diverges liker^degree, so this is a backstop and not a quality bar — callers that need a trustworthy extension ask for a small increment and check the result, they do not lean on this limit. - MAX_
FIT_ STATIONS - Absolute station ceiling, whatever the caller’s budget.
- MAX_
JOINT_ TANGENT_ BREAK - The largest tangent break, in radians, a chained path may have at a joint before the joint is a CORNER.
- MAX_
LISTED_ UNDECIDED - How many undecided candidates a report lists by name.
- MAX_
RINGS - MAX_
SEGMENTS - Caps on the initial cage so a typo cannot ask for a million handles.
- MILL_
REGION_ REFUSAL - The prefix of every refusal of this module.
- MIN_
RINGS - The fewest rings: with the two poles that is
degree + 1rows, one span. - MIN_
SEGMENTS - The fewest points a ring may have: a cubic periodic ring needs four.
- NO_
SPHERE_ CHART_ TRIM_ SWITCH BREP_NO_SPHERE_CHART_TRIM: SET to any value (compared: present in the environment), the sphere-chart lane stops substituting for the generic scan’s parity count.BREP_NO_SPHERE_CHARTS, which turns every sphere-chart path off, does the same here. Read per query.- OCCURRENCE_
REF_ PREFIX - The reference-name prefix an OCCURRENCE-scoped annotation carries out of a
structured import, until its consumer rewrites it:
OCC#<edge>#<edge>…:<part-local name>, the occurrence chain root first. An empty chain (OCC:) is the root product’s own geometry. - OFFSET_
CONSTRUCTION_ FLOOR - Absolute floor of
offset_construction_band, so a vanishingly small part is not held to a band below the arithmetic that builds it. - OFFSET_
CONSTRUCTION_ REL - Fraction of the local characteristic length an APPROXIMATE offset
construction may deviate from the exact geometry it approximates — see
offset_construction_band. - PART_
ATTRIBUTES - The top-level document key holding a part’s own BOM attribute record
(
{ "Part_Number": "PN-7", "Material": "6061", ... }). Owned by the app’s document model; the kernel reads it only to stampPRODUCT.id. - PART_
NUMBER - The BOM part-number field inside
PART_ATTRIBUTES. - PCURVE_
OFF_ BAR - The refusal every station builder returns for a fit off its bar.
- PCURVE_
REFINEMENT_ TOLERANCE - The 3D residual a pcurve’s image must reach before
build_pcurve_on_surfaceaccepts it, and the sample ceiling it refines up to. - POLYHEDRON_
REFUSAL - The prefix of every refusal of this module.
- RIGID_
TOL - Shared rigidity band for component and STEP placements.
- SEAM_
BAND_ MERGED_ SWITCH BREP_SEAM_BAND_MERGED: set to"0"(the only value compared), the doubly-periodic seam-band lane stops unwrapping a single merged seam-carrying loop, and that face goes on to the two-loop analyses or the generic scan. Read when a face is prepared; part of the prepared-face cache key.- SHELL_
ROUNDED_ REFUSAL - The prefix of every refusal of this operation.
- SKETC
H3D_ ANCHOR_ EDGES_ KEY - Record key of a vertex reference’s topological anchor: two edge names whose
one shared end IS the vertex. A
{solid}@x,y,zname is only a coordinate, so without this a vertex that moves stops resolving. - SKETC
H3D_ CONSTRAINT_ TYPES - The constraint vocabulary. Point layouts: a LINE is its two endpoints
[a0, a1](directiona1 − a0); a PLANE is[origin, normalTip](normalnormalTip − origin); an ARC is[center, start, end]. - SKETC
H3D_ DOC_ KEY - Key of the
persistentDatadocument. - SKETC
H3D_ EDIT_ BUTTON - The schema button that opens the editor.
- SKETC
H3D_ FEATURE_ TYPE - The feature type code (the dispatch and the catalogue key).
- SKETC
H3D_ REFERENCES_ PARAM - The dialog’s reference list param.
- SKETC
H3D_ REFERENCE_ TIP_ LENGTH - The length of the normal tip a resolved PLANE reference materializes
(
normalTip = origin + normal · this), and of the direction tip of a resolved AXIS reference. The solver normalizes directions, so the length only sizes what the editor draws. - SKETC
H3D_ REFS_ KEY - Key of the
persistentDatareference materialization record. - SKETCH_
ORIGIN_ POINT_ ID - The reserved id of every sketch’s PART ORIGIN reference point: world
(0, 0, 0)projected onto the sketch plane. The editor adds it on entry as a fixed, grounded, construction external reference, so geometry can be constrained to the origin. The sketch feature re-projects it onto the resolved frame before solving and never publishes it — it exists only inside the sketch (no scene point, no hole center, no 3D display). - SLAB_
REFUSAL - The prefix of every refusal of this module.
- SNAPSHOT_
FORMAT_ VERSION - Bumped whenever the container layout changes. A mismatch is always a clean
Err— the self-heal signal for a snapshot whose part document can be re-executed. For a payload that IS the document (nativeBrep) thatErris unrecoverable, so per the durability commitment in the module doc a bump MUST ship a reader for the previous version, or a migration. - SOLID_
CODEC_ VERSION - The header a
Solidbody writes, and the oldest version the reader accepts. The snapshot container (io/snapshot.rs) names this format durable: a Solid keeps writing 1.0 so no stored payload moves. - SOLID_
CODEC_ VERSION_ KIND - The header a body of any other kind writes: the kind slot follows
genus. - SOLID_
SWEEP_ REFUSAL - The prefix of every refusal of this operation.
- SOLID_
SWEEP_ WHOLE_ REFUSAL - The prefix of every refusal of this operation.
- STATED_
PRECISION_ INCONSISTENCY_ RATIO - How far the measured deviation may exceed the stated precision before the file is called inconsistent with itself.
- SURFACE_
FACE_ REFUSAL - The prefix of every refusal of this module.
- SWEEP_
DEFAULT_ TOLERANCE - The centre-track deviation a station sweep is refined to when its caller
names none: 1e-4 mm. Read off the tolerance ladder in the record: the
loosest value at which both closed rings the plan named sit under 1e-6
relative on their closed forms (the rounded rectangle 4.8e-4 → 1.9e-7 at
211 stations from 81, the filleted skew quad 8.3e-4 → 7.4e-8 at 248 from
92), while the
R = 10ring keeps its 64 stations and every single-curve fixture the landed geometry pins (a quarter arc at 32 stations reads 1.4e-7, a 350° arc 3.9e-5) stays under it and so bit-identical. One decade tighter costs half again as many stations for a residual already under 1e-7. - SWEEP_
ENVELOPE_ REFUSAL - The prefix every refusal from this lane starts with, so a caller can CLASSIFY one without matching free text.
- SWEEP_
MAX_ STATIONS - The loft’s station cap: its interpolation solve is per control column and a run past this looks like a hang. Refinement stops here and says so.
- SWEEP_
REFINEMENT_ ROUNDS - How many refinement rounds the sampler runs before it stops and reports
what it reached (
StationBudget::rounds_exhausted). A round splits an offending span by up to 8, so six rounds cover a span 2.6e5× over under theh²law a G1 joint’s span obeys. - SWEEP_
ROUND_ CORNERS_ REFUSAL - The prefix of every refusal of this operation.
- SWEEP_
TIGHT_ BEND_ REFUSAL - The prefix every tight-bend refusal starts with, so a caller can CLASSIFY one (the wire harness reports it as a bundle status) without matching free text.
- SWEEP_
TWIST_ CLOSURE_ REFUSAL - The prefix of the refusal for a requested twist that does not close a CLOSED path, so a caller can classify one without matching free text.
- THICKEN_
FACES_ REFUSAL - The prefix of every refusal of this operation.
- UNASSIGNED_
REGION - Region id given to triangles that could not be assigned to any region (degenerate triangles with no non-degenerate neighbor).
- VERTEX_
CAP_ FRACTION - Fraction of the SHORTEST incident edge that bounds a vertex’s band.
- VERTEX_
MATCH_ FLOOR - Absolute floor (mm) of the edge-endpoint-vs-vertex identity band used by
BrepSolid::validate: below this a curve end and its topological vertex ARE the same point (vendor export precision), above it the model is asked to state the meeting exactly. - VOLUME_
DRIFT_ ABS - Absolute floor of the volume drift band, see
VOLUME_DRIFT_REL. - VOLUME_
DRIFT_ REL - Relative volume drift between two measurements of the same body that is
still the same answer: the case gate’s band between a replay and its
baseline (
examples/case_replay.rs), and the perturbation rescue’s bar for a rung against the exact lane’s inclusion–exclusion identity (csg::boolean::perturbation_retry). One number, so the rescue can never accept a body the gate would call a different one. It only absorbs last-bit summation noise.
Traits§
- OrRefuse
- Mechanical conversion of a stringly LOWER-layer error consumed inside a
typed stack (geometry evaluation, tolerance policy checks): the text is
kept and the refusal is classed
Internalunderwhatatstage. This is a constructor at the consuming site, not a blanketFrom. - Solid
Scale - A body whose size sets its tolerance bands; the topology layer implements it for
BrepSolid.
Functions§
- accept_
sound - Scan a finished result and either accept it, repair it, or refuse it by name.
- accept_
sound_ against accept_soundfor a lane whose INPUTS may themselves self-intersect.- accept_
sound_ against_ scoped accept_sound_againstreading only the faces incandidates: the faces the operation built or changed, their neighbours, and every face whose box reaches the other operand. A face outside that set is an operand’s own, untouched, and lies clear of everything the operation added, so a crossing on it was the operand’s and passes through exactly as the full scan passes it (the inputs are scanned, flagged, and the result returned). An empty set is a result with nothing to scan. A flagged subset hands the whole result to the full acceptance, so every repair and refusal reads as before. (BooleanOptions::untouched_passthrough)- affine_
image_ curve - Exact 3D image of a pcurve on an AFFINE sheet: an affine map applied to the homogeneous control points commutes with the rational evaluation, so the image shares the pcurve’s degree / knots / weights and is parametrized identically — a rational circle pcurve maps to the exact 3D circle.
- apply_
edge_ splits - Apply the boundary-edge partition produced by imprint construction.
- apply_
edge_ splits_ json - apply_
edge_ splits_ with_ map apply_edge_splitsplus the identity ledger: original edge id → the minted sub-edge ids that replaced it. Consumers keyed on ORIGINAL edge ids (the fragment-selection barrier set) must remap through it, since the split solid’s coedges reference the minted ids.- arc_
curve_ json - arrange_
segments - arrange_
segments_ json - assembly_
export_ tree - Build the export tree for a document with components.
- audit_
step_ manifold - Audit the serialized entity graph rather than assuming that valid in-memory topology was necessarily written correctly. Every EDGE_CURVE in a closed shell must have exactly two ORIENTED_EDGE users with opposite senses.
- audit_
step_ pcurves - Audit the curve-on-surface half of the emitted graph, on the serialized
text, for the same reason
audit_step_manifoldexists: valid in-memory intent is not proof of a correctly written file. - blend_
closed_ edge - blend_
edge_ variable - Variable-radius blend (4.9.5): radius stops as (edge fraction, radius) pairs, linearly interpolated along the edge parameter and clamped at the ends. Closed edges must supply matching first/last radii.
- blend_
open_ edge - General OPEN-edge rolling-ball fillet or chamfer: §4.9 march + §6.9 surgery with transverse edges on the two end faces.
- blend_
smooth_ chain - Blend a chain of conjugated edges with one rolling-ball blend face (Golovanov §6.9.5: all conjugated edges processed together). A CLOSED chain (stadium rim, T-pipe saddle) welds into a periodic blend; an OPEN chain (line->arc->line capped by end faces) rolls a clamped blend that terminates in a transverse edge on each end face.
- blend_
timing_ capture - Turn the ledger on (or off) for the blend operations that FOLLOW on
this thread;
BREP_PROFILEturns it on for every operation. - body_
kind_ handle_ native - The kind a resident solid DECLARES (
BrepSolid::kind), as distinct from the kind the report above reads from the edge census.Solidfor every body built today. - boolean_
brep_ diagnostics_ json - boolean_
brep_ json - boolean_
handle - Boolean of two resident solids -> a NEW resident handle. The result never crosses the boundary as topology; only its handle is returned. Kernel-produced result is trusted (no double-validate).
- boolean_
handle_ native - Native sibling of
boolean_handle(String errors — constructing aJsValueerror panics off-wasm): boolean of two RESIDENT solids → a NEW resident handle, operands untouched. The assembly interference check’s non-destructive INTERSECT lane; callers free the result handle when done. - boolean_
operation - boolean_
operation_ nary - N-ary union / intersect / subtract of
operandsin ONE imprint+fragment pass (Golovanov T4.4). Additive: does not touch the binary path. - boolean_
operation_ nary_ with_ options boolean_operation_naryunder the caller’sBooleanOptions: the tolerance, the coplanar-face merge and itskeep_unmerged_name_substrslist are honoured exactly as the binary path honours them, so a caller that falls back from a sequence of binary unions to one arrangement (the sheet metal walk with adjacent bends) keeps the same face partition contract.- boolean_
operation_ with_ diagnostics - boolean_
operation_ with_ diagnostics_ at_ offset boolean_operation_with_diagnosticswith both operands translated byoffsetfor the operation and the result translated back. Refusal messages name the translated coordinates.- boolean_
residual_ fusables - Part 2 — the fuse-after detector. Any geometry in
resultthat is coincident withintolyet NOT topologically shared is an intersector / assembler bug: the weld pass should have fused it. Reports distinct vertices at one point and duplicate coincident edges. Purely diagnostic. - boolean_
semantic_ disagreement - Part 1 — the semantic cross-check. Sample points across the combined box of
first ∪ second, classify each versus the two operands and the result, and flag every decidable point where the result membership disagrees with the CSG expectation foroperation. See the module docs for the sampling / On-skip / threshold design. - boolean_
semantic_ disagreement_ nary - N-ary semantic cross-check — the correctness gate for
crate::boolean_operation_nary. Sample points across the combined box of alloperands, classify each versus every operand and the result, and flag every decidable point where the result membership disagrees with the n-ary CSG expectation (Union= In any,Intersect= In all,Subtract= In operand 0 and Out of the rest). Points on or near ANY operand or result boundary are skipped, so a correct n-ary boolean scores ~0. - boolean_
split_ operands - The two operands a binary boolean’s arrangement reads: prepared as the
boolean prepares them, with every boundary edge split where the imprint’s
sections meet it. These are the
NNN-firstandNNN-secondstagesBREP_BOOLEAN_DUMPwrites, not the operands at the boolean’s entry. - box_
brep_ json - box_
mesh_ json - build_
imprints - build_
imprints_ json - build_
pcurve_ json - build_
pcurve_ on_ surface fit_pcurve_on_surfacefor the callers that only need the curve. The report is not dropped: it is tallied on the openPcurveFitScope, if any, so the operation that owns this fit can say in its diagnostics whether every trim reached the floor.- build_
pcurve_ on_ surface_ marched fit_pcurve_on_surface_marchedfor the callers that only need the curve; the report is tallied on the openPcurveFitScopeexactly asbuild_pcurve_on_surfacedoes.- build_
pcurve_ on_ surface_ range fit_pcurve_on_surface_rangefor the callers that only need the curve: the fit is ACCEPTED or REFUSED on its bar (accept_fit), never returned off it.- build_
pcurve_ on_ surface_ range_ dense fit_pcurve_on_surface_range_densefor the callers that only need the curve, accepted or refused on its bar (accept_fit).- build_
pcurve_ on_ surface_ stations fit_pcurve_on_surface_stationsfor the callers that only need the curve, accepted or refused on its bar (accept_fit).- build_
swept_ envelope - Build the swept union: the APPLE first, then the LEMON where the turn leaves one outside it.
- canonical_
bits - Bits of
valuewith negative zero read as positive zero, for exact (bitwise) point keys:-0.0and0.0are the same coordinate. - canonicalize_
points - Collapse points that are the same point to ONE value.
- capabilities_
json - carrier_
preview_ patch - Diagnostic “carrier preview” patch (§3.15 applied to display): re-express
the surface over an INFLATED domain so an inspector can show where the
carrier continues beyond the face’s trim. Open directions inflate about
the domain centre by
inflate(a factor; 1 = unchanged), evaluated throughevaluate_extended— exact linear extension for affine carriers, ruled/tangent extension generally. CLOSED (periodic) directions keep the stored full period instead of inflating — wrapping further would overlap the surface onto itself. A torus (closed both ways) returns unchanged. - carrier_
preview_ patch_ json - Diagnostic carrier preview: re-express a surface over an inflated domain
(open directions inflate about the centre via extended evaluation; closed
directions keep their full period).
inflate <= 0defaults to 2. - certify_
regular - Certify
surfaceregular (see the module notes), or name where it fails. - chamfer_
edge - Equal-leg chamfer of one edge (Golovanov §6.11: the same construction with the arc’s chord).
- chamfer_
edge_ angle - Distance-angle chamfer of one STRAIGHT edge between two planar faces
(Golovanov §6.11): setback
d1along face 1 and angleangle_radbetween the chamfer face and face 1.d2is constructed geometrically in the cross-section plane (seechamfer_angle_second_distance), then the two-distance builder is applied. - chamfer_
edge_ asymmetric - Asymmetric (two-distance) chamfer of one STRAIGHT edge between two planar
faces (Golovanov §6.11): setback
d1along face 1 andd2along face 2 — the standard CAD “d1 × d2” bevel. General/curved edges are out of scope for this slice and return a clear error. - chamfer_
edge_ buffer - chamfer_
edge_ json - chamfer_
edges_ angle - Distance-angle chamfer of a GROUP of edges, the app entry: each selected
edge (resolved by a point on it) gets a setback
d1on face 1 and a chamfer face atangle_radfrom face 1 (§6.11);d2is constructed per edge. - chamfer_
edges_ angle_ buffer - chamfer_
edges_ angle_ json - chamfer_
edges_ asymmetric - Asymmetric (two-distance) chamfer of a GROUP of edges, the app entry: each
selected edge (resolved by a point on it) gets a
d1 × d2bevel (§6.11). Edges are chamfered independently — asymmetric chamfers keep sharp vertices, so there is no shared-corner blending. - chamfer_
edges_ asymmetric_ buffer - chamfer_
edges_ asymmetric_ json - chamfer_
edges_ asymmetric_ linear - Two-distance chamfers of the straight edges through
edge_points, one after another, each with the distancesstart([d1, d2],d1on the edge’s first face ascrate::fillet::chamfer_edges_asymmetricreads it) at the end of the edge nearerstart_atandendat its other end, both linear between. Each edge lies between two planes and ends on planes square to it. - chamfer_
edges_ with_ options - An equal-distance chamfer (
chamfer_edges_asymmetricwith both setbacksdistance) ofedge_points’ edges, read withoptions: the selection widened along its tangent chains first when asked. An edge the chains add takes the same distance and carries its own name. - chart_
grid_ divisions - Divisions across a chart square (90°) at
chord_tolerance. - chart_
grid_ parameters - The interior grid of a chart square, in the chart coordinate
s(ort). - circle_
angle_ to_ parameter - Parameter of the standard tangent-intersection rational quadratic arc
construction (
make_arc/make_revolution): a sweep split uniformly intospanssegments, each with middle weight cos(segment/2). Maps an angle in [0, sweep] to the curve parameter in [0, 1] exactly. - circle_
curve_ json - circumcenter
- circumcenter_
2d - Circumcenter in a plane, with a scale-relative degeneracy guard.
- classify_
point - classify_
points_ json - classify_
surface_ pair - Classify a pair before generic SSI runs. The classifier is conservative:
only separated control hulls are declared disjoint; uncertain pairs stay
Candidaterather than being incorrectly culled. - classify_
surface_ pair_ cached classify_surface_pairwith the per-surface work hoisted out — callers with many pairs per face build each face’sSurfaceClassifyDataonce.- classify_
tangent_ contact_ at - Refine
witnessonto the tangential contact of the two carriers and classify it.Nonewhen the witness is not near any contact (the refinement leaves a residual abovetolerance) or the carriers have no curvature to classify by (two planes). - clip_
less_ on - The switch for
sweep_clip_less(default on). - closest_
point_ on_ triangle - Ericson Voronoi-region closest point, including degenerate triangle edges.
- concatenate_
exact_ curve_ pieces - Join two exact NURBS pieces with a degree-multiplicity internal knot.
- cone_
brep_ json - connectivity_
handle_ native - Connectivity of a resident solid — the check
validate()does NOT make. Per-shell edge-connected face components, edges shared across shells, and pinch vertices. Pure topology, no geometry, no tolerance; seecrate::solid_connectivityfor which part is a gate and which is a diagnostic. Reads the solid in one registry borrow. - containment_
lane - Which lane of
parameter_point_in_facea face’s questions go to, read off the face alone — the kernel’s own lane selection, through the same prepared data the query uses, for a caller that answers some containment questions ahead of the kernel and must know which rule the kernel applies. - coons_
bilinear - The bilinearly blended Coons patch through four boundary curves given in cyclic order.
- coons_
bilinear_ reported coons_bilinearplus theCoonsReportof what it did and measured.- coons_
with_ ribbons - The Coons patch through four boundaries that also interpolates the prescribed cross-boundary derivative fields.
- corner_
index - Canonical index of the cube corner with the given per-axis signs.
- crossing_
node_ split_ enabled - Is the crossing-node split on (
BREP_SSI_NODE_SPLIT, default on;=0off)? - cube_
edge_ corner - The corner at the
q = +1(positive_end) orq = -1end of a cube edge. - cube_
edge_ divisions - Divisions per cube edge that hold the chord sag of a
radiussphere underchord_tolerance. A chord subtendingθsagsradius·(1 − cos(θ/2)), soθ = 2·acos(1 − tolerance/radius); the edge arc is2·atan(1/√2)long. - cube_
edge_ index - Canonical index of the cube edge whose VARYING axis is
varyingand whose two other axes(varying+1) % 3and(varying+2) % 3are pinned to the given signs. Twelve edges: three varying axes times four sign pairs. - cube_
edge_ parameters - The shared subdivision of EVERY cube edge, in the edge parameter
q ∈ [-1, 1]. - cube_
edge_ parts - Inverse of
cube_edge_index:(varying axis, sign of (v+1)%3, sign of (v+2)%3). - curve_
arc_ length - Exact 3D arc length of a NURBS curve over the parameter range
[t0, t1]— ∫|C’(t)| dt evaluated with a composite 8-point Gauss–Legendre rule paneled at the curve’s interior knots (each knot span further halved for headroom). The speed integrand|C'(t)|is polynomial-exact for the line/circle-arc curves the kernel emits and converges tightly for general NURBS. Returns0.0for a zero-width (or inverted) range. - curve_
carrier_ dimensions - The dimensions of a curve over
[t0, t1]when it is a circle or an arc of one (radius, diameter, and an arc’s sweep), elseNone. - curve_
derivatives_ json - curve_
evaluate_ json - curve_
model_ scale model_scaleof a curve, sampled uniformly over[t0, t1].- cut_
planar_ sweep_ from_ prism - The prism
targetless whattoolsweeps undermotionwithinclip, as one extrusion of the plane region the target’s outline holds outside the swept region (exact where the sweep’s own region engine is; behindregion_cut_on, default on). The same solid as subtracting [sweep_prism_planar_region]’s bodies from the target, without the 3D boolean: the sweep is taken within the clip only, as there. - cylinder_
brep_ json - cylinder_
mesh_ json - decode_
solid - deform_
face - Deform face
face_idofsolidasspecasks; every other record of the body is returned unchanged. Refuses by name: an unknown face, a pick whose anchor is off the face, a trim outside its carrier’s domain, any refusal of the carrier deformation (no free control point under a pick, dependent picks, a fold, …), a displacement larger than the face, and a result that does not validate or passes through itself. - deform_
shell - Deform faces
face_idsofsolidtogether asspecasks. - deform_
surface - Deform
surfaceasspecasks. The input is never changed. - deform_
surface_ where deform_surfacewhere, besides the held sides, a control point may move only whenmay_moveaccepts its support. A point of the surface depends only on the poles whose supports contain it (and on a support’s side only to the side’s vanishing order), so holding every pole whose support meets a region keeps the surface identical there to every order, and admitting one that only touches the region on a side of vanishing order 2 keeps the surface’s points and tangent planes there.- deform_
surfaces_ tied - Deform
surfacestogether underties. Every surface comes back on its prepared (elevated, split, merged) net; a tie’s two boundary rows come back identical, and tangent-continuous where the base edge was. - delete_
face_ and_ heal - Golovanov §6.12 — delete a transition face and heal the hole by extending
and re-intersecting its immediate neighbours. See the module docs for the
covered vs deferred cases. Returns a fresh solid that is guaranteed to
validate()AND to be sound, or a clearErrdescribing why the heal was refused. - delete_
faces_ and_ heal - Delete a SET of faces and heal, in one operation.
- display_
chord_ tolerance - The app’s display chord tolerance (
BetterSolid._kernelTessellationOptions): vertex |coord| extent — falling back to the control-point hull / sqrt(2) for vertex-free solids (full spheres/tori) — times 1.5e-3, times the render-LOD factor (1.0 = the app’s “Normal” preset). - display_
payload_ handle_ native - Native display payload for a resident solid: watertight mesh + face list (in
mesh
face_idsorder) + edge polylines + vertices, all in one registry borrow.lod_factorscales the per-solid display chord tolerance (1.0 = the app’s “Normal” preset; higher = coarser mesh). Callers pass a sanitized, finite, positive value —display_chord_tolerancemultiplies it in directly. - display_
payloads_ handles_ native display_payload_handle_nativefor many resident solids at once, inhandlesorder.- draft_
faces - Draft
face_idsofsolidbyangle_radiansfor the pull directionpull_direction, about the neutral plane throughneutral_pointsquare to the pull. See the contract at the top of this file: a positive angle leans each face into the material as it goes along the pull (a boss narrows, a pocket or a hole widens); a negative one leans it out. - draft_
faces_ parted - A PARTING-LINE draft: the body is split by the neutral plane through
parting_pointsquare topull_direction, the pieces of the selected faces on the+pullside are drafted for+pulland those on the other side for−pull— each leaningangle_radiansaway from the parting line, as the two halves of a two-piece mould pull apart — and the two sides are united again along the parting plane. The selected faces must each be a plane parallel to the pull or a cylinder about it, as fordraft_faces. - draft_
faces_ unchecked draft_faceswithout its soundness floor: returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- edge_
arc_ length - Exact 3D arc length of one edge over its active parameter range
[t0, t1](the same range the display sampler walks). Degenerate edges measure0. - edge_
carrier_ dimensions_ native - The circle a resident solid’s named edge lies on, when it does: radius,
diameter and an arc’s sweep (see
crate::curve_carrier_dimensions).Ok(None)for a line or any other curve; errs if no edge carriesedge_name. - edge_
length_ native - 3D arc length (mm) of a resident solid’s named edge. Errs if no edge carries
edge_name. - encode_
solid - euler_
handle_ native - Closedness and Euler parity of a resident solid — the THIRD check
validate()does not make on its own. Its Euler comparison reduces, on a freshly derived solid, to exactly “is the characteristic even”, and it is switched off on any solid carrying a degenerate edge; this asks the question directly and on every solid. Pure counting, one registry borrow. - eval_
expression - One-shot: build an
Envfrom a history’sexpressionssource + itsconfiguratorJSON, then evaluatesourceto a scalar. The small surface the engine-native sketcher’s live dimension-value edit uses (deliverable S5.0) — equivalent toEnv::build(expressions, configurator_json)?.eval(source). - export_
iges - Serialize solids as an IGES 5.3 document of Manifold Solid B-Rep Objects,
every body under
name. - export_
iges_ assembly - A document’s product structure as IGES: every product other than the root
as a 308 subfigure definition holding its own solids (in its own frame) and
the instances placed inside it, every occurrence as a 408 instance whose 124
carries its placement and whose 406 name is its designator, and the root’s
own solids and instances standing on their own. Solids are named by their
part-local scene names and coloured from
colors, as the STEP writer does. - export_
iges_ bodies export_igeswith a name and colour per body.- export_
iges_ handles - Native: export the CURRENT resident solids (by handle) to an IGES 5.3
document of trimmed NURBS surfaces. The IGES analogue of
export_step_handles— reads the resident solids out of the thread-local registry, clones them into aVec<BrepSolid>, and hands the batch toexport_iges.Stringerror (JsValue-free — links on native and wasm). - export_
step - Serialize exact NURBS BREP topology as an AP242 STEP Part 21 document.
- export_
step_ assembly export_step_assembly_reportreturning just the Part 21 text.- export_
step_ assembly_ handles - STRUCTURED export: the resident scene PLUS the document’s assembly model, as
an AP242 file with real product structure — one
PRODUCTper parts-library entry, oneNEXT_ASSEMBLY_USAGE_OCCURRENCEper placed instance. - export_
step_ assembly_ report - Write a product structure as an AP242 Part 21 document: one product per
distinct part, one
NEXT_ASSEMBLY_USAGE_OCCURRENCEper placement, exact B-rep geometry in each part’s own frame. - export_
step_ handles - Native: export the CURRENT resident solids (by handle) to an ISO-10303-21
STEP document. Reads each resident solid out of the thread-local registry —
the SAME registry
display_payload_handle_nativereads — clones them into aVec<BrepSolid>, and hands the batch toexport_step. The engine-native app’s Export→STEP lane calls this with the handles the pipeline left resident after the last history run, so the topology never crosses a boundary as JSON.Stringerror (JsValue-free — it links + runs on native and wasm alike). - export_
step_ json - export_
step_ named_ handles export_step_handleswith each body’s SCENE NAME and an optional PMI block: the engine-native Export→STEP lane. Names key theMANIFOLD_SOLID_BREPs and the PMI reference resolution.- export_
step_ report export_stepplus the pcurve-coverage measurements behind the file. Every body is written under the part name; no PMI.- export_
step_ report_ named - The full single-product writer: each body carries its SCENE NAME
(
MANIFOLD_SOLID_BREPname — and the key the PMI references resolve through), and an optional PMI block is written as AP242 semantic representation + polyline presentation + saved views (pmi). - extrude_
brep_ buffer - extrude_
brep_ json - extrude_
curves_ to_ sheet - The sheet a chain of curves sweeps as it slides by
distancealongdirection: one face per curve (the curve times the slide), each a sheet of its own, in the chain’s order. Every face’s normal is its curve’s direction crossed with the slide’s, so the faces of a chain run head to tail have their normals on one side of the sheet, asthicken_sheet_facesneeds them; run the chain the other way for the other side. - extrude_
profile_ brep - extrude_
profile_ brep_ draft - Straight extrude of a LINE/ARC profile loop with a draft (taper) angle, built DIRECTLY as a BREP: every wall is the EXACT drafted surface of its segment — a tilted plane for a line, a cone patch (rational ruled surface between the source arc and its concentric offset, over one shared angular window) for a circular arc — and every junction edge is the EXACT intersection curve of the two adjacent walls. Because all drafted walls shrink linearly at the same rate, any two of them intersect in a straight line (plane∧plane, or a tangent-junction ruling) or a CONIC (plane∧cone and cone∧cone both reduce to a plane section of a cone — the z² terms of the squared implicits cancel), so the junction edges are exact rational quadratics: no lofted approximation anywhere.
- extrude_
profile_ brep_ draft_ buffer - extrude_
profile_ brep_ draft_ json - extrude_
profile_ brep_ draft_ roof - The solid of
profileextruded bydistancealongdirectionwith its walls drafted inward bydraft_angle_rad, whether or not the taper closes the section before the far end. - extrude_
profile_ up_ to_ face - The prism on
profile(a closed loop of curves in a plane, or one closed curve) slid alongdirectionuntil it meets the faceface_idoftarget, on which it ends. - extrude_
profile_ with_ holes - Extrude a planar profile with holes along
directionbydistance: an outer loop and any number of inner loops (holes, inside it and apart from each other), each a closed chain of curves (end to start) in either winding. Walls are the curves extruded (exact), the two caps planes with the outer loop round the holes, every hole a through-hole. The direction may be oblique to the profile but not in its plane. Faces are namedW<i>(outer walls),H<h>_<i>(hole walls),B(the profile’s cap) andT(the far cap). - face_
area - face_
boundary_ length - Total 3D arc length of a face’s boundary edges: the unique edges referenced by
the face’s loop coedges, resolved against the owning
solid’s edge table and summed once each. An edge referenced twice by the same face (e.g. a seam) is still counted once. - face_
carrier_ dimensions_ native - The carrier dimensions of a resident solid’s named face, for the Info
panel: a cylinder’s radius and diameter, a cone’s half-angle, a sphere’s
radius, a torus’s radii (see
crate::surface_carrier_dimensions).Ok(None)for a plane or a free-form face; errs if no face carriesface_name. - face_
deform_ default_ anchor - The face’s deepest interior point: of a 25 x 25 grid over its parameter
box, the point inside the face farthest (in space) from its boundary,
sampled along every coedge.
Nonewhen no grid point is inside. - face_
from_ surface - A sheet of one face on
surfaceover its whole domain, its normal the surface’s own (∂S/∂u × ∂S/∂v). - face_
from_ surface_ trimmed - A sheet of one face on
surfacebounded byloops: the first its outer boundary, the rest holes. Each loop is a closed chain of curves lying on the surface, head to tail in either sense (a single closed curve is a loop of one); each curve becomes an edge and each joint a vertex. The face’s normal is the surface’s own. - face_
measurements_ native (area, boundary_edge_total_length, surface_type)of a resident solid’s named face (mm² / mm / classification): the face’s surface area, the summed arc length of its boundary edges, and a short label for its underlying carrier surface ("Plane","Cylinder","Cone","Sphere","Torus","Surface of revolution", or"NURBS"when the exact rational patch is not a recognized analytic carrier). Errs if no face carriesface_name.- face_
metrics_ json - face_
names_ handle - The resident solid’s face id -> name map (Stage 1b; lets the host rebuild its selection/name index from a handle without materializing the full graph).
- face_
self_ intersections - Which of this solid’s faces FOLD THROUGH THEMSELVES in 3D — a face whose surface carries two distinct trimmed parameter feet to one point in space: an offset taken past the source’s curvature radius, a section swept through a bend tighter than its own half-width, a carrier fitted through a swallowtail.
- face_
set_ identity - Hash exactly what the integrator reads, in the order it reads it.
- face_
transform_ reason FaceTransformReasonof a refusal, by class and slug.- face_
volume_ contribution - fillet_
edge - Constant-radius rolling-ball fillet of one edge (Golovanov §4.9 march, §6.9 surgery; the cutter only where the march refuses).
- fillet_
edge_ buffer - fillet_
edge_ conic - Conic-section blend of one edge: the rolling ball’s two contacts joined by a conic instead of the ball’s arc.
- fillet_
edge_ g2 - A curvature-continuous (order 2) fillet of a straight edge between two
planes: its section meets each face where a ball of
offsetwould (offsetis the tangent offset), as flat as the face there (contact of order 2), and bends with radiuscenterat its middle (wherecenteris not positive, the thumbweight that takes off what the ball’s round does). The section is the order-2 Gⁿ blend of E. Hartmann (2001), exactly, as a rational quintic. - fillet_
edge_ json - fillet_
edges - Fillet (or chamfer) a GROUP of edges as ONE operation, and — for fillets — round the convex “star” vertices where three or more of the selected edges meet (Golovanov §6.9.7). This is the whole multi-edge fillet in a single kernel call: the caller passes the object plus one 3D point on each edge, and the kernel orchestrates the filleting and corner blending against the full topology (so acute corners resolve coherently instead of being stitched edge-by-edge by the app). A corner the kernel cannot round (e.g. non-orthogonal beyond support, or a general no-common-ball star) is left as the edge fillets rather than failing the whole group.
- fillet_
edges_ buffer - fillet_
edges_ conic fillet_edge_conicfor edges picked by a point on each. The edges are blended one after another and independently: where two of them meet, the vertex stays sharp between the two blends (no corner is built).- fillet_
edges_ conic_ distances - A conic-section blend of each edge (resolved by a point on it) with its
two contacts set apart:
along_referencefrom the edge on the edge’s face nearestreference(a point on or by that face),along_otheron its other face. The section is the rational quadratic offillet_edge_conicthrough those contacts, its middle pole the edge’s point, weights1, rho / (1 − rho), 1; between faces at a right anglerho = √2 − 1makes it the quarter ellipse of semi-axesalong_referenceandalong_other(an unequal round). Built on the edgesfillet_edge_conicbuilds on: a straight edge between planes, and a circular edge between straight-sided surfaces about its axis. The edges are blended one after another. - fillet_
edges_ conic_ setback fillet_edges_conicsized by setback: each edge the points lie on is rounded by a conic blend meeting both facessetbackfrom the edge, its shoulderrhoof the way from the contacts’ chord to the edge. The edges are blended one after another and independently, asfillet_edges_conicblends them, and on the same edges.- fillet_
edges_ g2 fillet_edge_g2for the edges the points lie on, one after another.- fillet_
edges_ json - fillet_
edges_ radii - Fillets (or, with
chamfer, symmetric chamfers) of a GROUP of edges in one operation, each selected edge (resolved by a point on it) at its own constant sizesizes[i]: the variable group core with a constant stop list per edge, so edges of unequal sizes meeting at a vertex are blended together there rather than one after another: unequal fillets at a vertex close on the stripe network’s ribbon fill, chamfers meet in their planes. - fillet_
edges_ reported - fillet_
edges_ reported_ at_ offset fillet_edgeswith the selection outcome reported rather than refused.- fillet_
edges_ setback fillet_edgesofradiuswhose fillets stopsetbackshort of the corner where three of the selected edges meet (measured along each edge), the corner closed by one smooth patch meeting the three fillets and the three faces there (seeblend::setback_corner). The three edges must meet at one vertex.- fillet_
edges_ setback_ g2 fillet_edges_g2of the three edges the points lie on, meeting at one convex vertex between three planes, whose strips stopsetbackfrom the vertex (measured along each edge) and whose corner is closed by one curvature-continuous patch: tangent to the strips and the faces and with their curvatures along every side (see the module notes).offsetis the blends’ tangent offset andcentertheir centre radius (where not positive, the thumbweight that takes off what the ball’s round does).- fillet_
edges_ tangent_ chains fillet_edgesofedge_points’ edges and every unselected edge on the tangent chains through them (closed loops included: picking one straight edge of a prism whose upright corners are rounded rounds its whole top loop). The chains are walked as the fillet feature walks them (tangent_chain_expansion: from each end vertex the single edge whose tangent continues the chain within 1e-6, stopping at a sharp or ambiguous junction).edge_names, when given, names the picked edges; the edges the chains add carry their own names.- fillet_
edges_ variable - Variable-radius fillet/chamfer of a GROUP of edges (§4.9.5), the app entry
for tapered blends: each selected edge (resolved by a point on it) is
blended with the SAME radius profile
radii— a list of (edge-fraction, radius) stops in[0,1]— applied along that edge’s own parameterization. Edges are blended independently (no shared-vertex corner rounding; a variable-radius star has no single tangent ball), so this is the tapered counterpart offillet_edgesfor the constant case. - fillet_
edges_ variable_ buffer - fillet_
edges_ variable_ json - fillet_
edges_ variable_ law - Fillet (or chamfer) a chain of edges under a composable radius law
evaluated on the chain’s cumulative arc-length abscissa (the OCCT
Law_Compositemodel; seecrate::law::RadiusLaw). The selected edges must form ONE OPEN CHAIN (or be a single edge); the chain starts at the free end of the earliest-selected end edge, and the law’s abscissa maps proportionally onto the chain’s measured arc length (a law built with the chain’s own lengths — e.g.crate::law::RadiusLaw::from_vertex_radii— maps 1:1). Endpoint radii are met exactly; radii at shared chain vertices match by the law’s continuity, so the per-edge blends miter through the corners; a chain whose blends cannot be mitered REFUSES rather than distorting the law through the sequential rebuild. - fillet_
edges_ variable_ vertex_ radii - The natural per-vertex user model: radius
vertex_radii[i]at chain vertexi(in CHAIN order, starting at the free end of the earliest-selected edge), smoothly interpolated along the chain (monotone C1 — every vertex radius met exactly, no overshoot). Requires exactly one radius per chain vertex (edges + 1). - fillet_
edges_ with_ options fillet_edgesread withoptions: the selection widened along its tangent chains first when asked, and the pinch refused when asked (judged on the widened selection).- fillet_
faces - Rounds between the faces
point_aandpoint_blie on by a ball ofradius(see the module’s account of what is built and what is refused). - find_
tangent_ contact - Find a tangential contact between two carriers without a witness: grid the first carrier, project each sample onto the second, rank the samples by their distance and the angle between the normals, and refine the best few onto the contact. The grid is then repeated from the second carrier, so a contact one carrier samples poorly is still reached from the other.
- fit_
helix_ curve helix_sample_pointsfitted as ONE cubic curve (global interpolation —interpolate_curve, the machinery every fitted path here uses). Cubic interpolation error on a circle of radius R with node spacing Δθ is ≈ R·Δθ⁴/384: ~2·10⁻⁷·R at 64 stations per turn.- fit_
pcurve_ on_ surface - Build a parameter-space curve for a 3D curve lying on a surface, and say what the fit achieved.
- fit_
pcurve_ on_ surface_ marched - SECTION-PCURVE SEEDED MARCH (t222: cone × ABC 00000327, non-integral genus).
- fit_
pcurve_ on_ surface_ range - Build a pcurve for a represented subrange of a larger edge curve.
- fit_
pcurve_ on_ surface_ range_ dense - Range fitter with explicit sampling knobs, reporting what the fit achieved.
fit_pcurve_on_surface_rangekeeps the long-standing (base 64, 3 refinement rounds, 513 cap) budget; a fit that binds at that cap with the bar unmet grows once toPCURVE_RAISED_SAMPLES(fit_pcurve_on_surface_stations). - fit_
pcurve_ on_ surface_ stations - The body of
fit_pcurve_on_surface_range_dense, parameterized by the 3D station the pcurve must pass through at each coedge fraction instead of by an edge curve and a range. - fit_
polyline - Interpolate a curve through a polyline and REFINE it until the curve itself
is within
toleranceof that polyline. - fit_
polyline_ at - Fit ONE rung at the given station budget and measure it — no refinement.
- fit_
polyline_ of_ degree fit_polylinewith the GLOBAL lane’s interpolation degree chosen by the caller (the local lane is cubic Hermite whatever is asked). A marched section’s stations lie on both carriers to the march’s residual, and a degree-pinterpolant through them errs by O(h^(p+1)) between stations: onBadBoolean’s sphere×bore rim at its own 135 stations the cubic sits 2.5e-7 off a carrier with a mean signed bias of −1.2e-8, the quintic 8.5e-9 and +6e-11 — the SAME stations, knots and control-point count, so nothing downstream that samples per knot pays for it (2026-09-27).- flat_
mill_ region_ prisms - The region an upright flat-bottomed cutter of
radiuscovers as its axis runsmoves(all at one level), extruded frombottomtotop: one prism for each connected part of the region (its holes through it). The moves’ order does not matter. - fragment_
face - Back-compat entry point: builds the imprint index for this single face.
fragment_solidbuilds it once and callsfragment_face_indexeddirectly. - fragment_
faces_ json - fragment_
solid - free_
solid - Drop a resident solid. No-op if the handle is unknown.
- full_
round - Replaces the face
middlelies on by a round tangent to it and to the facesside_aandside_blie on (see the module’s account). - gordon_
surface - The Gordon surface through two crossing curve families, judged against the kernel’s vertex identity band.
- gordon_
surface_ reported gordon_surfacewith a caller-stated crossing band, plus theGordonReportof what it did and measured.- helical_
solid - A helical or herringbone gear solid; names as
spur_solid. - helix_
sample_ points - Helical sweep (§5.7): sweep a CLOSED PLANAR profile loop along a helix of
helix_radiusabout the axis throughaxis_originwith directionaxis_direction, risingpitchper revolution forturnsrevolutions. - horizon_
cross_ frame - Whether the wrapped-horizon lane sums each loop’s parity over the query’s
period images (
true, the default) or keeps the per-image combining (false,HORIZON_CROSS_FRAME_SWITCH="0"). Read from the environment on every call, as the lane reads it on every query. - hyperbola_
curve_ json - image_
curve - Build the 3D image of an ARBITRARY pcurve on
surface. - image_
curve_ pair - The images of ONE pcurve on TWO surfaces, guaranteed to share a basis.
- import_
iges - Parse an IGES document and reconstruct one or more
BrepSolids. - import_
iges_ bodies import_iges_reportfor a caller that drops the report’s diagnostics (the IMPORT3D feature): underBREP_IMPORT_LEANthe STEP builds skip their trim readings, which only read the trims already chosen (on a 4917-face surface model they were most of the import). The bodies are the same.- import_
iges_ report import_igeswith the import’s diagnostics, the IGES counterpart ofcrate::import_step_report.- import_
obj_ solid - Import Wavefront OBJ text as a faceted (planar-triangle) BREP solid.
tolerance <= 0derives the vertex-weld band from the model’s bounding-box diagonal. - import_
step - Public entry: parse a STEP Part 21 document and return one
BrepSolidper MANIFOLD_SOLID_BREP, FACETED_BREP, or certified BREP_WITH_VOIDS. Every returned solid passesvalidate()and closes its shells’ vector area to the import’s bar; a file with a body the closure gate refuses is refused as a whole (seeimport_step_bodies). - import_
step_ bodies import_step_with_appearancewith the error TYPED: the lane the IMPORT3D feature uses, so a refused body reaches the app as a class and not only as text.- import_
step_ json - Import an ISO-10303-21 (STEP Part 21) document and return the reconstructed
kernel solids as a JSON array of
BrepSolidrecords. Round-trips exactly whatexport_stepwrites; unsupported entities yield a clear error string. - import_
step_ report - Like
import_stepbut reports how many bodies failed and the first error, so callers can distinguish a fully- from a partially-imported assembly — and runs the stated-precision consistency check over the imported bodies, whose result rides inStepImportReport::diagnostics. - import_
step_ trim_ readings - Build every flat body of
textwith the per-edge provenance captured. - import_
step_ with_ appearance import_stepplus the file’s PRESENTATION colours: oneBodyAppearanceper returned solid, in the same order.- import_
stl_ solid - Import binary or ASCII STL bytes (
read_stl) as a faceted (planar-triangle) BREP solid.tolerance <= 0derives the vertex-weld band from the model’s bounding-box diagonal. - interpolate_
curve - Global B-spline interpolation (The NURBS Book A9.1) through
pointsat the supplied strictly increasingparameters. - interpolate_
curve_ closed - interpolate_
curve_ local - interpolate_
curve_ thinned - interpolate_
curve_ thinned_ json - interpolate_
curve_ with_ end_ tangents - Cubic interpolation with PRESCRIBED end derivatives (Piegl–Tiller §9.2.2): n+1 points plus two tangent rows give n+3 clamped control points. The derivative conditions use the exact clamped end forms C’(t0) = p/(u_{p+1}−t0)·(Q1−Q0) and C’(t1) = p/(t1−u_{m−p−1})·(Qn−Qn−1), so the requested tangents are reproduced exactly — the §5.8 loft tangency building block.
- intersect_
analytic_ pair - Exact intersection curves for recognized analytic pairs, or
Nonewhen the pair is not handled and the caller must fall back to SSI marching.Some(vec![])means “provably empty” and skips marching entirely. - intersect_
curve_ surface - intersect_
curve_ surface_ json - intersect_
curves - intersect_
curves_ json - intersect_
surfaces - intersect_
surfaces_ json - intersect_
surfaces_ supplemental - Gated supplemental SSI detector for a pair the coarse pair-classifier
culled as “tangential-only” (
NearTangent+tangential_only). - is_
component_ reference ACOMP<digits>— an ACOMP feature id, i.e. a whole-component selection or one namespace segment of a nested chain — or a Pattern Component instance id (APAT1.ACOMP3.i4), which namespaces its geometry the same way.- is_
sketch_ origin_ point_ id - Whether a sketch point id is the reserved
SKETCH_ORIGIN_POINT_ID. - join_
curve_ chain - The chain
pieces, curves that follow one another head to tail, as one curve: exactly the same points, each piece on a stretch of the parameter as long as the piece itself, so the joined curve runs at an even pace from piece to piece. Its joints are knots of full multiplicity (the curve is as smooth there as the chain is). - line_
curve_ json - loft_
brep_ buffer - loft_
brep_ json - loft_
profile_ brep - Loft corresponding edges of closed sections. For two sections, exact degree elevation and knot insertion reconcile mixed line/arc representations and the ruled skins retain both boundaries’ rational weights. Multi-section interpolation requires matching degrees, knots and weights.
- loft_
profile_ brep_ closed - §5.8 CLOSED loft: the sections form a RING (the last flows back into the
first), producing a capless genus-1 solid. Every interpolation column runs
through
interpolate_curve_closed, so the ring is C² across the closure — not a welded seam. Topology per skin is the cylinder-wall rectangle turned on its side: u runs along the section curve (open), v through the sections (closed); the section-0 curves themselves serve as the doubled v-seam edges and the corner rings (one closed curve through every section at each section corner) are shared between adjacent skins. - loft_
profile_ brep_ closed_ buffer - loft_
profile_ brep_ closed_ json - loft_
profile_ brep_ guided - Loft a set of loft-compatible cross-sections so the loft’s SPINE follows a GUIDE curve (§5.8) instead of the straight centroid-to-centroid path.
- loft_
profile_ brep_ guided_ buffer - loft_
profile_ brep_ guided_ chain - The loft of
sectionsalong the guideguide, a chain of curves that follow one another head to tail and meet smoothly;rotate_to_frameturns the sections with the guide’s moving frame (crate::loft_profile_brep_guided_frame) instead of keeping their own orientation (crate::loft_profile_brep_guided). A chain of one curve is that curve. - loft_
profile_ brep_ guided_ frame - Rotation-to-frame guided loft (§5.8): like
loft_profile_brep_guided, but intermediate sections ROTATE with the guide’s rotation-minimizing moving frame (double-reflection RMF, the same frames the path sweep uses) instead of keeping their world orientation. - loft_
profile_ brep_ guided_ json - loft_
profile_ brep_ on_ guide_ chains - The solid lofted through the closed sections
sectionsalongguides, each guide a chain of curves. - loft_
profile_ brep_ on_ guides - The solid lofted from the closed section
firstto the closed sectionlastalongguides. - loft_
profile_ brep_ on_ loose_ guide_ chains loft_profile_brep_on_guide_chainsfor sections and guides that are not yet matched: the guides in any order, and every section after the first starting at any of its corners and run either way round. The first section is taken as given; each guide is given to the corner of it that it passes through, and every later section is turned (and reversed if need be) until its corners lie on the guides of the first section’s corners. A last section at one point is left as it is.- loft_
profile_ brep_ tangent - §5.8 loft with END TANGENCY: the skin leaves the first section along
start_directionand arrives at the last alongend_direction(unit directions; each interpolation column scales them by its own chord length, the standard magnitude that keeps the v-parametrization well conditioned). Exact by construction — the column interpolant reproduces the prescribed end derivatives. - loft_
profile_ brep_ tangent_ buffer - loft_
profile_ brep_ tangent_ json - loop_
crossings_ handle_ native - Face-loop self-crossing of a resident solid — the check no OTHER detector
here can make.
validate()is silent (the incidence is perfect), the face-versus-face scan has no pair to confirm (both triangles are on one face), connectivity and Euler parity count the same cells either way; the face’s AREA is the only other tell. Pure parameter-space work on the trims the face already carries — no tessellation — so it is cheap enough to be a default. Reads the solid in one registry borrow. - loop_
self_ crossings - Does any face’s trim loop cross ITSELF in its own parameter domain — a bowtie?
- make_
arc - make_
box - make_
box_ brep - make_
circle - make_
cone_ brep - make_
cone_ surface - make_
cylinder - make_
cylinder_ brep - make_
cylinder_ surface - make_
ellipse - The whole ellipse of
make_ellipse_arc, closed, from its point on the major direction round towardminor_hint. - make_
ellipse_ arc - The arc of the ellipse about
centerwith semi-axissemi_majoralongmajor_directionandsemi_minorsquare to it (towardminor_hint), from the parameterstart_angletoend_angle(radians) ofP(t) = center + semi_major·cos t·x + semi_minor·sin t·y. - make_
ellipsoid_ brep - The solid ellipsoid about
centerwith semi-axessemi_axes[0]alongx_direction,semi_axes[1]square to it towardy_hint, andsemi_axes[2]along their cross product. - make_
extrusion - make_
hyperbola - Exact arc of the hyperbola branch x²/a² − y²/b² = 1, x > 0 in the local
frame (center at the origin,
major_axis= +x,minor_axis= +y), parametrized P(t) = (a·cosh t, b·sinh t) and trimmed to t ∈ [t0, t1]. A single rational quadratic Bézier is exact for any sweep on one branch: endpoints on the curve, middle control point at the intersection of the end tangents, and middle weight cosh((t1−t0)/2) chosen so the shoulder point lands back on the branch. Only the point set is hyperbola-exact away from the ends; the NURBS parameter coincides with the hyperbolic parameter t exactly at t0, (t0+t1)/2 and t1. - make_
line - make_
parabola - Exact parabola segment y² = 4·focal·x in the local frame (vertex at the
origin,
axis= +x,latus_direction= +y), parametrized the standard way P(t) = (focal·t², 2·focal·t) and trimmed to t ∈ [t0, t1]. A parabola segment is a plain quadratic polynomial in t (all weights 1), so a single degree-2 Bézier over the knot span [t0, t1] reproduces both the point set AND the parametrization exactly — no fitting, and evaluate(t) == P(t) for every t, not just at the ends. - make_
periodic_ bspline - The closed, periodic uniform B-spline of
degreeon the control polygoncontrol_points(each given once; the polygon closes from the last to the first), as a clamped curve over[0, n]forncontrol points. - make_
plane - make_
polyhedron_ brep - The closed polyhedron whose faces are the polygons
facesoverpoints: each face a loop of point indices running counter-clockwise seen from outside, flat (every corner within a billionth of the polyhedron’s size of its plane), its consecutive corners distinct. - make_
pyramid_ brep - make_
pyramid_ on_ polygon - The pyramid on the plane polygon
base(its corners in order, either way round) with its point atapex: the base and one triangle on each of its sides. The base need not be regular, nor the apex over its middle. - make_
revolution - make_
slab_ brep - The slab over the rectangle
0 ≤ x ≤ size[0],0 ≤ y ≤ size[1], fromz = 0up to the bicubic B-spline height field with clamped knotsknots_u,knots_v(along x and along y) and coefficientsheights[i][j](ialong x), every one positive. - make_
sphere_ brep - make_
sphere_ brep_ framed - A sphere solid whose SEAM direction is chosen as well as its polar axis — see
make_sphere_surface_framed. The topology is identical either way (one face, one pole-to-pole seam edge, two degenerate pole edges); only WHERE on the ball the seam and the poles sit changes. A caller that will trim the ball uses it to hide both inside the removed region, so the surviving face has no edge bordering itself. - make_
sphere_ surface - make_
sphere_ surface_ framed - A sphere with BOTH halves of its frame chosen: the polar axis (where the two
degenerate poles sit) and the SEAM direction (where the
u = 0meridian runs).seam_directionis Gram-Schmidt’d against the axis;None— and a seam parallel to the axis, which names no meridian — falls back toVec3::perpendicular, i.e. exactly whatmake_sphere_surfacebuilds. - make_
torus_ brep - make_
torus_ surface - mass_
caller - mass_
measures_ handle_ native - Surface area and volume of a resident solid — the native sibling of
mass_properties_handle_nativefor a caller that reads NOTHING but those two numbers (examples/case_replay.rsrecords volume and area per solid and discards the rest). The full entry runs a second station sweep over every trimmed face for the nine moment integrands, which costs as much again as the area/volume sweep: onanotherBooleanFail’s imported 32-face body 2.6 s against 1.3 s, and 5.3 s of that case’s 12.9 s replay went to moments nobody read. The two numbers come out of the samesolid_mass_propertiescall the full entry starts with, so they are bit-identical to itsvolumeandsurface_area; the full entry’s refusal of a non-positive volume is kept so a caller switching over sees the sameErron the same solids. Reads the solid in one registry borrow. - mass_
properties_ handle - Analytic mass properties of a resident solid (a handful of scalars).
- mass_
properties_ handle_ native - Full mass properties of a resident solid, scaled to
density(the native, non-wasm sibling ofmass_properties_handlefor the in-process renderer): volume + surface area + centroid + centroidal inertia tensor + principal axes/moments (Golovanov §8.11). The underlying geometry is unit-density; heremass = density * volumeand every inertia quantity scales linearly with density (centroid + principal axes are density-independent).densityis in mass units per mm³ (the kernel’s length convention is millimetres); pass1.0for the raw geometric result (mass == volume). Reads the solid in one registry borrow; the topology never crosses a boundary. - measure_
edge_ against_ pcurve_ image max_t ‖C_3d(t) − S(p(t))‖— how far the edge’s own 3D curve sits from the locus its pcurve traces onsurface, recorded againstband.- measure_
surface_ fit_ against_ pointwise_ offset max_{u,v} ‖S_fit(u,v) − offset(u,v)‖— how far a fitted offset carrier sits from the pointwise offset it was fitted to, recorded againstband.- merge_
curve_ continuation_ edges - Collapse tangent continuation edges seen by the same two incident faces — or by the same face TWICE, which is what a split seam looks like.
- merge_
curve_ continuations_ json - merge_
faces_ within - Merge edge-adjacent faces of
groupthat ride the same carrier — the pairsmerge_same_surface_faceswould merge, at the sametolerance, plus two lanes only a user’s selection opts into: cone patches, and two half-turn patches closing a ring on a shared axial edge (seeMergeLanes) — and nothing else: a face outsidegroupis never touched, however cosurface with a neighbour. - merge_
same_ surface_ faces - merge_
same_ surface_ faces_ excluding - Like
merge_same_surface_faces, but any face whosenameCONTAINS one ofkeep_unmergedis pinned: it never merges with a coplanar/cosurface neighbour and is emitted unchanged, while every other face merges exactly asmerge_same_surface_faceswould. An emptykeep_unmergedis identical to the plain call. - merge_
same_ surface_ faces_ scoped merge_same_surface_faces_excludingwhose closing validation reads the geometry of the faces inscopeand of the faces the merge built; every pair still merges exactly as the plain call merges it (an operand’s own coplanar neighbours included: the 2026-10-10 census found a mesh import whose five such pairs the boolean fuses). A boolean passes the faces its operation touched and their neighbours (BooleanOptions::untouched_passthrough); the rest were validated by the assembler and left this pass as they came.- mesh_
regions_ to_ brep - Rebuild a
BrepSolidwhose faces are the mesh’s segmented regions. The result always passes full topology validation (watertight edge pairing, Euler accounting, pcurve consistency) or the call returnsErr— an invalid solid is never returned. See the module-level v1 scope notes. - mesh_
regions_ to_ brep_ buffer - mesh_
regions_ to_ brep_ json - mesh_
to_ faceted_ brep - Build a faceted (planar-triangle) BREP solid from a triangle soup or an
indexed triangle mesh — the STL/mesh import entry (§8.6 inverse: mesh →
body). Vertices weld within
tolerance(pass<= 0to derive it from the bounding-box diagonal), duplicate and degenerate triangles are dropped, surplus sheets at non-manifold edges are pruned, and remaining boundary cycles are capped with a fan so the result closes watertight whenever the input is close to a manifold. Validation is authoritative: an input too broken to close returns an error, never a silently-invalid solid. - mesh_
volume_ json - mint_
sketch_ id - Mint a collision-free sketch ID, with caller-selected reserved IDs omitted.
- mirror_
brep - Reflect an exact BREP across the plane through
plane_pointwith unit normaln = plane_normal.normalized(). The reflection is the affine mapp' = R p + twith linear partR = I - 2 n nᵀand translationt = 2 (plane_point·n) n, so points on the plane map to themselves. A reflection has negative determinant (it flips handedness), so faces are re-oriented via the existing transform withreverse_orientation = true, keeping outward normals. - mirror_
brep_ buffer - mirror_
brep_ json - model_
scale - The kernel’s single definition of a model’s characteristic length: the bounding-box diagonal of a point set.
- move_
faces - Golovanov §6.12 direct editing — translate a group of faces rigidly and heal the adjacency with the faces that stay behind.
- move_
faces_ unchecked move_faceswithout its soundness floor: the direct re-solve, returned as soon as its incidences validate. The result can pass through itself where the motion met a face the selection does not border; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- n_
sided_ fill - Fill the closed loop
sides(3 to 6 curves, in order round the loop, either way along each) withNfour-sided patches. - n_
sided_ reentrant_ corners - The re-entrant corners of a loop of 3 to 12 curves given in order round
it, either way along each (corner
kis where sidekstarts, after orienting head to tail from side 0). A boundary fill uses it to send a four-sided loop with a re-entrant corner ton_sided_fill. - nearest_
boundary_ point - The boundary point nearest
point, on the solid’s exact geometry, and where it lies.tolerance(mm) is the band a face foot may stand past its trim and still count as inside it.Nonefor a solid with no boundary. A face foot on its trim’s boundary band gives way to an edge or vertex foot withintoleranceof it: the point lies on that edge (or vertex) within the tolerance, where the faces’ normals decide crease or smooth. - notch_
less - The workpiece less the sweep, built directly where the sweep crosses one
face plane of a convex workpiece (module docs);
Noneelsewhere, or withBREP_SWEEP_NOTCH=0. - notch_
less_ on - The switch for
notch_less(default on;=0answers None). - occurrence_
ref_ parts - Read an occurrence-scoped reference back:
(chain, part-local name).Nonefor any other name. - offset_
construction_ band - The band an approximate offset construction is judged against: 0.05% of the
caller’s local characteristic length, floored at
OFFSET_CONSTRUCTION_FLOOR. - offset_
face_ carrier - offset_
face_ carrier_ json - offset_
face_ carrier_ measured offset_face_carrier, with every entity it builds measured against the deviation it was meant to reproduce.- offset_
face_ carrier_ sided - offset_
faces solidwith the facesface_pointslie on each moveddistancealong its outward normal onto its offset surface (inward where it is negative), the faces round them extended or trimmed to meet them: Push Face’s push (a plane translated, a cylinder, cone, sphere or torus offset exactly, a general revolution or free-form carrier within a bounded residual), then its acceptance. A plane landed exactly on a neighbour (two tops merged, a slot closed) is the boolean the push defines; a plane carried past one (an edge between them turned over) is refused as ill-posed. Exact to the push’s tolerance, max(1e-7 of the model’s scale, 1e-9); a nonzero distance below it is refused by name.- offset_
freeform_ face - Offset a free-form NURBS face whose boundaries have no other incident face.
The fitted offset must pass a dense same-parameter residual check. Intrinsic
iso boundaries use exact iso-curves; other self-incident trims use
crate::image_curve. Rebuilt topology and volume orientation are validated. Neighbour-trimmed faces require general intersection and are refused. - offset_
freeform_ face_ unchecked offset_freeform_facewithout its soundness floor: returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- offset_
revolution_ face - Push a general surface of revolution with planar neighbours.
- offset_
revolution_ face_ unchecked offset_revolution_facewithout its soundness floor: returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- offset_
ruled_ face - Push a CYLINDER or CONE face along its outward normal by
distance(positive grows the solid) by OFFSETTING its carrier surface and re-deriving the trim as the intersection of that offset surface with the neighbour carriers. - offset_
ruled_ face_ unchecked offset_ruled_facewithout its soundness floor: the offset and re-trim, returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- offset_
shell - offset_
shell_ by_ boolean - The textbook shell: the offset body with the opening faces HELD (copied at
distance zero, so they cancel in the difference), then
source − bodyfor an inward shell andbody − sourcefor an outward one. The walls at the openings come out of the boolean.distancecarriesoffset_shell’s sign (positive inward). - offset_
shell_ closed - Lane O row 34: the CLOSED hollow, a shell with no openings. The offset
body, the whole source grown or shrunk with sharp joins, against the
source:
source − bodyinward andbody − sourceoutward, so the result is the outer shell and the inner void’s shell, with the walls of the band between them.distancecarriesoffset_shell’s sign (positive inward).face_imagesare read back from the operands by surface as inoffset_shell_by_boolean:Offsetfor the body’s faces,Sourcefor the source’s. - offset_
shell_ diagnostics_ json - offset_
shell_ json - offset_
shell_ rounded sourceshelled to a walldistancethick, joined by arcs, open at the flat facesopening_face_ids. The sign iscrate::offset_shell’s: a positive distance puts the wall inside the solid, a negative one outside.- offset_
shell_ with_ diagnostics - Run offset shell with stable counters and validation diagnostics suitable for automated regressions and UI presentation.
- offset_
shell_ with_ options offset_shellread withoptions.- offset_
solid - Offset every face of
sourcebydistance(positive grows) and join the offset faces into a closed body. - offset_
sphere_ face - Push a SPHERICAL face along its outward normal by
distance(positive grows the solid) by replacing its carrier with the concentric offset sphere and re-trimming its neighbours: planar caps through the centre keep their exact- scale great-circle rim, while off-centre planes, spheres, and coaxial ruled neighbours have their rim re-derived as S′ ∩ neighbour. - offset_
sphere_ face_ unchecked offset_sphere_facewithout its soundness floor: returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- offset_
surface - Construct the same fitted offset carrier surface as the reference shell implementation. Positive distance follows its convention and moves opposite the face’s outward normal.
- offset_
surface_ json - offset_
surface_ measured offset_surface, plus the deviation MEASURED between the carrier it built and the pointwise offset that carrier approximates.- offset_
surface_ measured_ sided offset_surface_measuredwith a per-sideCarrierExtension.- offset_
torus_ face - Push a toroidal face by changing its tube radius. Boundary edges must be
intrinsic to this face; neighbour-trimmed rims require re-intersection and
are refused. The carrier retains its knot vectors, weights, and UV basis,
keeping pcurves valid. Iso boundaries rebuild exactly; other self-incident
trims use
crate::image_curve. - offset_
torus_ face_ unchecked offset_torus_facewithout its soundness floor: returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- parabola_
curve_ json - parameter_
point_ in_ face - parameter_
point_ in_ face_ json - parameter_
space_ area - parse_
stl_ triangles - Parse binary or ASCII STL bytes into their facets.
- plane_
ruled_ section_ arc - The EXACT arc of
plane ∩ ruled revolutionspanning a given AZIMUTH range about the carrier’s own frame — the arc-restricted, seam-anchorable form of the full sectionsintersect_plane_quadricreturns. - point_
in_ polygon - point_
in_ polygon_ json - profile_
anchor - Validate a closed planar profile loop and derive its placement anchor —
the path sweep’s §1 block, extracted bit-identically: 16 samples per curve,
closure at
tolerance, Newell normal, boundary-sample-mean origin, planarity attolerance * 100,pu = np.perpendicular(),pv = np × pu. - project_
curve_ json - project_
point_ to_ curve - project_
point_ to_ surface - The point of
surfacenearestpoint, over the surface’s whole domain. - project_
point_ to_ surface_ seeded - Project a point onto a surface starting Newton from an explicit
(u, v)guess, WITHOUT the global grid seed. This is a footpoint refiner for continuity-preserving curve-on-surface tracing: seeding each edge sample from its neighbour’s parameters keeps the fit on ONE branch of a surface that folds back over the small trimmed patch, where an independent global search would snap to whichever fold is momentarily closest and tear the pcurve into a self-crossing zig-zag. The caller compares the returneddistanceagainst the global answer and only adopts this result when it is geometrically just as valid, so a bad seed can never make a fit worse. - project_
surface_ json - pyramid_
brep_ json - rack_
section - The section of a straight rack (exact: lines and arcs), counter-clockwise.
Roles:
G<k>the root land before tooth k (G<teeth>the last one),W<k>/V<k>the root fillets left/right of tooth k,L<k>/R<k>its left (low x) and right flanks,K<k>its tip,BASEthe back face,E0andE1the ends at x = 0 and x = length. - rack_
solid - A rack solid: the section extruded along +z by the face width; names as
rack_section, thenF(z = 0) andB(z = width). - read_
3mf - Read a 3MF package: locate the model part through the OPC relationships, parse the core model, and flatten the build into a millimetre triangle soup.
- read_
iges_ assembly - The file’s subfigure structure, the IGES counterpart of
crate::read_step_assembly: one product for the file itself holding the solids that stand on their own, one per instanced subfigure (308) holding its own solids in its own frame, and one occurrence per instance (408) with its placement in millimetres.Ok(None)when the file places no subfigures, so the caller takes the flat import as for STEP. - read_
obj - Parse Wavefront OBJ text into flat positions and triangle indices.
- read_
step_ assembly - Read a STEP file’s product structure AND build each product’s own bodies, in ONE parse, with each distinct body built ONCE.
- read_
step_ pmi - Read a file’s PMI into a
PmiStatewhose references name the geometry an IMPORT3D featurefeature_namewill stamp.Ok(None)when the file carries no PMI. - read_
stl - Read binary or ASCII STL bytes (
parse_stl_triangles) as a flat triangle soup, refusing a corner that is not finite. - read_
stl_ json - Read binary or ASCII STL bytes (
read_stl) as{tri_count, positions, format}JSON. - reblend_
lost_ fillets - Put back the fillets a re-cut filled in.
- rebuild_
displaced_ blends - Run a face edit past the variable-radius fillets beside the selection.
- recognize_
circle - Sampled circle recognition; this does not certify exact NURBS equivalence.
- recognize_
swept_ envelope - Recognize the one configuration the envelope lane builds, or say — in words a refusal can quote — which half of it this sweep is not.
- reconstruct_
spherical_ mesh_ union - Attempt a small union of outward spheres and, optionally, one orthogonal
box. Returns
Nonefor unsupported geometry or insufficient evidence. - recut_
convex_ body - Re-make a convex body with its selected PLANAR faces carried by the rigid
motion
turn(axis point, unit axis, angle in radians; applied first) thentranslation. See the module comment for what it checks. - recut_
moved_ planes - Re-cut a solid for a pure TRANSLATION of planar faces.
- recut_
moved_ planes_ rigid - Re-cut a solid for a RIGID motion of planar faces:
rotation, when given as(axis point, unit axis, angle in radians), is applied first andtranslationafter it — Transform Face’s rotate-then-translate. - recut_
moved_ planes_ unchecked recut_moved_planeswithout its soundness floor: returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- redrill_
moved_ bore - Re-drill the selected through-bore wall at its carrier carried by the rigid
motion
turn(axis point, unit axis, angle in radians; applied first) thentranslation. See the module comment for what it checks. - refit_
faces_ as_ one - Replace the faces
face_idsofsolidwith one face on a surface of familykindfitted to them, withintolerance(maximum vertex residual, model units). See the module docs for the scope and the refusals. - region_
cut_ on - The switch for
cut_planar_sweep_from_prism(default on;BREP_SWEEP_REGION_CUT=0turns it off). - register_
solid_ buffer - Ingest a solid from the flat f64 codec into the resident registry (arena + validate kept — external / first-crossing ingest). Returns an opaque handle.
- register_
solid_ json - Ingest a solid from JSON into the resident registry (arena + validate kept).
- registered_
solid_ clone - A clone of a resident solid, for Rust callers that need the topology itself:
the case-replay diagnostics and probes, and the history runner answering a
drawing sheet’s topology request (native thread or browser worker alike),
which serializes the clone back to the main side. The feature pipeline’s
results only ever hand out handles, and this is no
#[wasm_bindgen]export: JavaScript never calls it. Short borrow; the clone is the caller’s. - registered_
solid_ count - Number of resident solids (diagnostics / handle-leak detection).
- repair_
triangle_ soup - The mesh half of
mesh_to_faceted_brep: weld, drop degenerate and duplicate triangles, prune surplus sheets at non-manifold edges, and cap the remaining boundary cycles with a fan — returning the repaired triangle soup instead of a BREP. - report_
scale_ migration - Migration diagnostic for the one-
model_scalechange (slice 0). - resolve_
component_ point - Whole-component representative point: the center of the aggregate AABB of every face surface’s control-point hull (plus topology vertices) across the component’s solids. The hull BOUNDS the exact surfaces (convex-hull property) without touching tessellation; it overshoots curved faces, so this is a representative anchor for coincident/parallel-with-component semantics, not an exact bounding box.
- resolve_
edge_ selection - Resolve an edge by topology id (the
EdgeReflane). - resolve_
face_ by_ point - Resolve the id of the face nearest a 3D point (used by the app: the picked
point lies on the selected face). Mirrors
resolve_edge_by_point. - resolve_
face_ crossing - Split two faces of ONE body that cross each other along their carriers’ exact intersection, drop the material the crossing encloses, and re-sew.
- resolve_
face_ crossing_ between resolve_face_crossingfor a pair this module has named itself rather than read off the scan.- resolve_
face_ selection - Resolve a face by topology id (the scene-map
FaceReflane: the caller already resolved the selection name to(handle, face_id)). - resolve_
named_ selection - Resolve a component-LOCAL topology name (already namespace-stripped) against one solid: faces first, then edges. Names never collide across the two kinds under the deterministic-naming scheme; the order only settles pathological ties.
- resolve_
sketch3d_ reference - Resolve a reference name against the live scene: a published point
(
{feature}:P{n}, a waypoint’sBase), a datum / construction PLANE frame, a published AXIS, a resident FACE (planar → plane, axis-bearing → axis line, sphere → centre), a resident EDGE (straight → line, arc → arc, closed circle → its axis line), or a{solid}@x,y,zVERTEX.Nonewhen nothing carries the name or the entity has no analytic shape. - resolve_
vertex_ selection - Resolve a vertex selection by position (vertices have no kernel names; the renderer references them by owning solid + position). Nearest topology vertex wins — deterministic when two vertices are close — then the scale-relative snap tolerance gates acceptance; the returned point is the EXACT vertex position, not the query.
- restore_
solids - Restore a snapshot payload exactly. Every failure mode (bad base64, wrong
magic, version mismatch, truncation, corrupted geometry) is a clean
Err. - revolution_
structure - revolve_
brep_ buffer - revolve_
brep_ json - revolve_
profile_ brep - revolve_
profile_ brep_ named - Revolve with caller-supplied names.
side_namesis aligned with the INPUT curves; the kernel carries it through winding normalization and axis-curve skips, which the caller cannot reconstruct from the emitted face order.cap_namesis[start_cap, end_cap]for partial revolutions. Empty slices leave faces unnamed. - revolve_
profile_ with_ holes - Revolve a planar profile with holes about the axis through
axis_pointalongaxis_directionbyangle(radians, up to a full turn): the outer loop revolved (ascrate::revolve_profile_breprevolves one loop, touching the axis if it must), less each hole revolved. A full turn makes each hole a closed void inside the solid; a part turn opens the holes through the end caps. Holes must lie off the axis and inside the outer loop. Every face is the profile curve revolved or a cap plane: exact. - rewrite_
occurrence_ refs - Rewrite every occurrence-scoped reference in a lifted annotation’s params
into the consumer’s own namespace.
namespaceturns an occurrence chain into the prefix a reference to that instance’s geometry opens with ("ACOMP3:", or""for a component that IS the document);Nonefrom it means the consumer placed no component for that chain, and the reference is left naming the chain so the row reports itself rather than resolving to the wrong instance. - rib_
from_ profile - Rib / stiffener (§6.6) — SolidWorks’ Rib, both extrusion directions, with its Up To Next end condition.
- rib_
from_ profile_ buffer - rib_
from_ profile_ json - ring_
section - The inner (toothed) loop of a ring gear, counter-clockwise about +z, and its data.
Roles per tooth space k:
R<k>flank on its clockwise side,V<k>its fillet,G<k>the root land,W<k>,L<k>, thenK<k>the tip land of the ring tooth after the space. - ring_
solid - A ring gear solid: a cylinder of radius root + rim with the toothed loop
cut through it. Its faces carry their role names (
R3,K0, …,ODthe outside,Fat z = 0,Bat z = width) inface.name. - rotate_
faces - ROTATE the faces
face_idsofsolidbyangle_radiansabout the axis throughaxis_pointalongaxis_direction(right-handed), re-intersecting the neighbours the rotation moves the selection relative to. - rotate_
faces_ unchecked rotate_faceswithout its soundness floor: the direct re-solve, returned as soon as its incidences validate. The result can pass through itself; the caller owes it an acceptance scan (crate::accept_sound) before it is used as a body.- round_
convex_ corner - §6.9.7 vertex (“star”) blend: round a convex trihedral corner whose three
incident edges are ALREADY filleted, by pure topology surgery — no
booleans.
corneris the ORIGINAL sharp corner coordinate (already trimmed away by the edge fillets). A spherical octant ofradius, tangent to all three cylindrical fillets along their tangent circles, is sewn into the notch; the three fillet loops are closed on those tangent circles and the leftover flat caps are removed. - round_
convex_ corner_ buffer - round_
convex_ corner_ json - route_
reading - Which faces a moved selection’s carriers would open a NEW hole in.
- sample_
edge_ polyline_ checked - Certify the full rational curve, rather than a finite set of sag probes. Positive homogeneous weights place each Bezier arc inside its control hull; distance to a segment is convex, so the largest control-point distance bounds the entire arc. Subdivision tightens that bound without omitting knot spans. Endpoints are the shared topology vertices, including their displacement from the curve. Unsupported representations fail closed.
- sample_
edge_ polylines - Display edge polylines for native in-process consumers (brep-render): every
NON-degenerate edge’s chord-tolerance samples as
(edge_id, points), sorted by edge id so the output is deterministic (the sample map is a HashMap). The samples are the same shared samples the watertight tessellation uses, so the displayed edges lie exactly on the mesh’s face boundaries. - sample_
edges_ encoded - Compute every edge’s shared samples and serialize them into a flat f64
buffer for transfer to face-range workers. Layout:
[edge_count, (edge_id, sample_count, frac_0..n, x_0,y_0,z_0, ...), ...](fractions.len() == positions.len(), so one count per edge). Edge ids ride as f64 exactly as the solid codec already carries them. - screw_
profile_ brep - The solid a closed profile sweeps when screwed about an axis it lies beside: the profile,
drawn in a plane through the axis, turned right-handed about
axis_directionthroughangle(radians, positive) while it risesrisealong it per radian (a thread;rise0 is the revolution). The walls are the profile carried along the screw, lofted through its sections and re-carried to high order (the threads’ own construction); a long screw is built a few turns at a time and stacked. Refused where the profile reaches the axis, leaves the plane through it, or meets its own next turn (its height along the axis at least the rise of a turn) when the screw turns more than once. - segment_
intersection - segment_
intersection_ json - segment_
mesh_ faces - Segment a triangle mesh into smooth regions and recognize each region’s
analytic carrier.
positionsare xyz triples;indicesis a triangle index buffer, or empty to treatpositionsas a raw soup of consecutive triangles (the STL layout ofread_stl). - segment_
mesh_ faces_ json - self_
intersections_ handle_ native - Face-versus-face self-intersection of a resident solid — the OTHER check
validate()does not make (its one “self-intersects” string is a uv-wire warning). Opt-in and expensive: it tessellates the solid and walks a triangle BVH, so no default gate calls it.chord_toleranceoverrides the per-solid display density when positive. Reads the solid in one registry borrow. - sew_
rotated_ copies - Sew
countcopies ofcell’s faceskept_faces, copykturned byk · step(radians, right-handed aboutaxis_direction) about the axis throughaxis_origin, into one solid: the faces left out are the cell’s faces on the surfaces dividing it from its neighbours, where a copy meets the next. The soup is the cell’s kept faces per copy, ids offset per copy by one span past the cell’s largest id (copykby(k + 1) · span), with the edges and vertices they use, sewn assew_solidsews. Beside the solid and its report, the result’s face ids by copy (copykat indexk, each in the cell’s face order). - sew_
solid - Best-effort sew of a solid’s open boundary edges.
- sew_
step - The faces of a STEP file sewn into one solid where their edges lie within
tolerance(mm) of each other: every body the file holds, an open shell or a face set read as a sheet, joined and sewn bycrate::solid_from_sheets. Refuses a file with nothing to sew, a body that did not reconstruct, and sheets that leave an edge open (saying how many) or do not close a valid solid. - sheet_
from_ sheets - One sheet of all the faces of
sheets, joined along the edges that coincide withintolerance(the kernel’s sewing, assolid_from_sheetsjoins them), its boundary left open: the patches of a filled N-sided hole as one body. Refuses a joined body the kernel’s validation rejects. - shell_
vector_ areas - Does a closed shell’s boundary enclose the vector area it should — zero?
- signed_
volume_ against solid_signed_volume_for_signfor a caller that compares the result withbarand nothing else (the boolean assembly’s closed tail, the shell’s orientation, the direct edit’s inversion check — 2026-10-17): the memoised sign reading, whose verdict against the bar is the exact integral’s.BREP_SIGN_READERS_EXACT=1restores the exact read at those call sites, for an on/off census. Read once.- simplify_
polyline - simplify_
polyline_ indices - Douglas–Peucker against
tolerance, as INDICES intopoints. - sketch3d_
common_ edge_ end - The one end two edges share,
Nonewhen they share no end or both ends (two halves of a seamed rim say nothing about which end is meant). - sketch3d_
constraint_ type - Look up a constraint type by its
typestring. - sketch3d_
curve_ reference_ controls - The control points (
3 * REFERENCE_CURVE_SPANS + 1) of a C1 cubic bezier chain through samples of a curve, its anchors spaced evenly by arc length.Nonefor fewer than two samples or a curve of no length. - sketch3d_
reference_ record - A materialization record entry for a resolved reference — the editor’s
side of
resolve_reference(kept here so the record’s shape has one author). - sketch_
display_ payload - Native display payload for a whole committed SKETCH: its profile SHEET (when the sketch closes a region) PLUS every model SEGMENT the sheet does not already draw.
- sketch_
id_ key - Canonical sketch entity key. Numeric IDs normalize integral floats and signed zero; string IDs are preserved. Other JSON values use their JSON spelling.
- sketch_
profile_ display_ payload - Native display payload for a solved sketch PROFILE — the SHEET-SOLID view of a
committed sketch: a planar FACE mesh + its named boundary EDGES + corner
VERTICES, so a sketch is pickable / selectable / measurable through the exact
same display path as a real solid. NO solid is registered — the payload is
synthesized directly from the profile, so it owns no scene handle (the display
carries
source_handle = 0). - snapshot_
resident_ solids snapshot_solidsover RESIDENT solids — the shape the parts-library lane holds after running a sub-part history (AddedSolid.name+ handle).- snapshot_
solids - Serialize
(name, solid)pairs into one base64 snapshot payload. Captures each entity’s OWN scene-metadata record (solid name + every face/edge name) alongside the geometry, so a stamped part restores with its metadata. The payload is byte-deterministic for identical input (solids in caller order, metadata sorted by name). - solid_
closest_ points - The point of the solid nearest each point: the point itself where the
solid holds it (inside or on its boundary, at
tolerance), otherwise its nearest boundary point. - solid_
connectivity - Connectivity of a solid’s topology: are each shell’s faces reachable from one another across shared edges, do any two shells share an edge, and does any vertex pinch two otherwise-separate fans together.
- solid_
display - The display of
solidwith chords withintoleranceof it. - solid_
edge_ length_ total - Total 3D arc length of every non-degenerate edge of a solid (each shared edge counted ONCE — the solid’s edge table is already edge-unique). This is the solid’s “total edge length” measurement.
- solid_
edge_ length_ total_ native - Total 3D arc length (mm) of every non-degenerate edge of a resident solid — the Properties panel’s “total edge length” measurement. Native sibling of the mass-properties accessors; one short registry borrow, topology never crosses the boundary.
- solid_
euler - Closedness and Euler parity:
V − E + F − Hover the reduced complex, and whether the counts can belong to a closed orientable surface at all. - solid_
from_ polygons - The solid bounded by the plane polygons
faces, each its corners in order (either way round): every polygon a flat face, joined along their common sides (crate::solid_from_sheets) and turned outward. The polygons need not be convex, nor the solid; each side of each polygon must be a whole side of exactly one other. - solid_
from_ sheets - solid_
gap - The least distance between the boundaries of
aandb(0 where they touch or cross), on their exact geometry: the lesser of the searches from each side ([gap_from]), once one reads more than round-off.tolerance(mm) is the trim band. - solid_
handle_ to_ buffer - Escape hatch: pull a resident solid’s full topology across the boundary (for STEP export or JSON-only lanes during the migration). Prefer handle-native ops — this re-incurs the serialization cost the registry exists to avoid.
- solid_
interference - How
aandbmeet: the volume of their intersection (the exact boolean’s, 0 when their least boxes lie apart) and, when they share none, the least distance between their boundaries on their exact geometry (crate::solid_gap; 0 where they touch).tolerance(mm) is the band a point may stand past a face’s trim and still count as on it. - solid_
least_ box - The least box with sides square to the axes that holds the solid, as its
low and high corners, on its exact geometry (not its control nets): the
box round its vertices, the points along each edge where a coordinate is
greatest or least, and the points inside each face’s trim where one is (a
ball’s or a ring’s side).
tolerance(mm) is the band a face’s point may stand past its trim and still count as on the face. - solid_
mass_ properties - solid_
mass_ properties_ full - Area, volume, centroid, and centroidal inertia (unit density). Area and
volume use the same exact paths as
solid_mass_properties; the moment integrals use divergence-theorem surface quadrature (exact for untrimmed spans, trim-polygon scanline accuracy for trimmed faces). - solid_
mass_ properties_ full_ json - solid_
mass_ properties_ json - solid_
model_ scale model_scaleof a solid’s vertices — the RAW bounding-box diagonal, with no>= 1.0floor. This is what direct-edit wants: a sub-unit part must keep sub-unit bands. (BrepSolid::validatewants the same thing and still hand-rolls it, for the reason its own comment gives — it answers0.0, not1.0, for a vertexless solid. Reconciling that contract is a follow-up, not a free ride-along.) Usesolid_scalefor the floored variant the tolerance policy is built on.- solid_
outward_ normals - The outward unit normal at each point of the solid’s boundary (within
tolerance, mm), where the boundary has a tangent plane there:Noneat a crease, where faces meet at an angle, or off the boundary. A point on a smooth edge, where the faces meet tangentially, has the faces’ common normal. - solid_
piece_ by_ plane - The piece of
solidon one side of the plane throughplane_pointwith normalplane_normal: the −n side whenaboveis false, the +n side when it is true. The cutting box spanscovertimes the diagonal of the solid’s control-point box (at least 1;split_solid_by_planeuses 3), centred on that box’s centre projected onto the plane, so it covers every part of the solid on its side whenever the plane meets that box.Ok(None)when nothing of the solid lies on that side; an error only when the cut itself fails, so a caller can tell a plane that misses from a boolean that declined. - solid_
pieces - The separate pieces of
solid: one solid per shell that bounds material, each with the shells of the hollows inside it. A solid of one piece comes back as itself. - solid_
principal_ curvatures - The principal curvatures
[k1, k2],k1 >= k2, at the boundary point nearest each point: positive where the boundary bends away from its outward normal, as on a ball (1 / rboth ways);Nonewhere that point lies on a crease. A nearest point on an edge or at a vertex is a crease unless every face there shares one tangent plane, and then the curvatures are read on the first of them. - solid_
scale solid_model_scalefloored at 1.0 — the characteristic lengthKernelTolerances::for_solidand the boolean/imprint/heal sites are tuned against. The floor keeps a unit-and-below part on the historical bands those call sites were fitted to; new size-relative sites should prefer the unflooredmodel_scalefamily and floor explicitly where they mean to.- solid_
section - Where the plane through
originsquare tonormalcuts the boundary ofsolid, in pieces in any order: each piece is one edge of the cut, as points along it from end to end, every chord withinchord_toleranceof the edge curve. The pieces join end to end into the closed curves of the cut; a piece that is a whole closed curve ends on its first point. Empty when the plane misses the solid. - solid_
section_ area - The area of the cut of
solidby the plane throughoriginsquare tonormal: the area of the faces the split leaves on that plane. Zero when the plane misses the solid. - solid_
self_ intersections - Does this solid pass through itself? Tessellates every face once, walks a triangle BVH for mesh crossings, and confirms each candidate against the two carrier SURFACES so tangent neighbours and chord error cannot manufacture a finding. See the module docs for the design and its one documented blind spot.
- solid_
signed_ volume - Exact signed volume. A single nonempty shell shares its area/volume measurement with subsequent property queries. Multiple shells retain the original per-shell compensated sum: substituting the across-face sum can change the last bits and an orientation gate must not change its answer.
- solid_
signed_ volume_ for_ sign solid_signed_volumeread for its SIGN againstbar, as the boolean’s assembly reads it (volume <= tolerance³refuses an inverted shell).- solve_
assembly - Solve the assembly mates in least squares from the bodies’ initial poses.
- solve_
assembly_ json - solve_
banded - solve_
banded_ json - solve_
dense - solve_
dense_ json - solve_
sketch - solve_
sketch3d - Solve a JSON request: returns
{"sketch": {points, geometries, constraints, diagnostics}}, the 2D solver’s response shape. - solve_
sketch3d_ doc - Solve
docin place: the free points take their solved coordinates and the diagnostics describe the constraint system at that configuration. - solve_
sketch3d_ from_ json - Solve a JSON request given as text; the response is JSON text.
- solve_
sketch_ from_ json - solve_
sketch_ json - span_
midpoint_ error - The same comparison as
measure_edge_against_pcurve_image, sampled once at the midpoint of every knot span of the edge’s own 3D curve. - sphere_
brep_ json - split_
at_ crossing_ nodes - Split
curvesat every passage through a crossing node of the two carriers. Returns the curves (unchanged when no node is found) and the points of the nodes a branch was cut at. - split_
component_ namespace - Split a possibly-namespaced topology name into its
ACOMP…:component-id chain (outermost first) and the remaining component-LOCAL name. A segment is peeled only when it matchesACOMP<digits>AND is followed by:, so a bare whole-component reference stays in the LOCAL position — callers detect it withis_component_reference: - split_
pinched_ vertices - Split PINCHED vertices — points where two (or more) umbrella fans of faces meet at a single vertex record. Local manifold checks (edge use counts, loop closure, orientation) cannot see a pinch; it surfaces only as an odd Euler characteristic. The link of a manifold boundary vertex is a single edge-connected fan: union incident edges through every loop CORNER at the vertex (consecutive coedges meeting there inside one face); more than one component means distinct fans sharing the record — give each extra fan its own vertex at the same point and reassign that fan’s edge endpoints. Geometry is untouched; only identity is repaired.
- split_
solid_ by_ face_ surface - Split
solidby the analytic carrier of a selected facesurface(Golovanov §6.4). The face may be a plane, cylinder, cone, or sphere; the carrier is extended to fully span the body. Returns the two pieces ([below, above]for a plane,[inside, outside]otherwise). Errors on non-analytic / general-revolution faces, or when the carrier does not cleanly divide the body. - split_
solid_ by_ face_ surface_ json - Cut a solid by the analytic carrier of a selected face’s
surface(Golovanov §6.4). The face may be a plane, cylinder, cone, or sphere; the kernel recognizes its analytic type and extends it to span the body. Returns{ "pieces": [<below/inside>, <above/outside>] }. Errors on non-analytic faces or when the carrier does not cleanly divide the body. - split_
solid_ by_ plane - Split
solidinto two pieces by the plane throughplane_pointwith normalplane_normal. Returns(below, above)wherebelowis the piece on the −n side of the plane andabovethe piece on the +n side. - split_
solid_ by_ plane_ json - Cut a solid by a plane (Golovanov §6.4). Returns
{ "below": <solid>, "above": <solid> }— the −n and +n pieces of the split. Errors with “plane does not intersect the solid” when the plane misses the body, and with the boolean’s own refusal when the cut fails. - split_
solid_ by_ surface - Split
solidinto pieces by an analytic tool surface (Golovanov §6.4). - split_
solid_ by_ surface_ json - Cut a solid by an analytic tool surface (Golovanov §6.4). The request is
{ "solid": <solid>, "tool": { "type": "cylinder"|"sphere"|"cone"|"torus"| "plane", ... } }. Returns{ "pieces": [<inside>, <outside>] }(for a plane,[below, above]). Errors with “tool surface does not divide the solid” when the tool does not cleanly cut the body. - split_
surface surfacecut along the parameter lineat(avline whenalong_v, else auline) into the part before it and the part after it. Exact: knot insertion on each row of poles across the cut.- sprocket_
section - The section of a roller-chain sprocket, counter-clockwise; every curve is a
circular arc. Tooth k is centred on angle 2 pi k / z (tooth 0 on +x); gap k
follows it. Roles:
A<k>the flank into gap k,S<k>its roller seating,C<k>the flank out of it,K<k>the tip land of the tooth after gap k (absent when the flanks meet below the tip circle). - sprocket_
solid - A sprocket solid: the section extruded along +z by the width; names as
sprocket_section, thenFandB. - spur_
section - The section of an external spur gear, generated by its rack cutter.
- spur_
solid - A spur gear solid: the section extruded along +z by the face width. The face
names (suffixes, in the solid’s face order) are the section curves’ roles,
then
F(the z = 0 face) andB(the z = width face). - surface_
carrier_ dimensions - The dimensions of a surface’s recognised carrier, or
Nonefor a plane, a free-form patch, or a revolution whose generatrix is neither straight nor circular. - sweep_
bend_ profile - The
ρκprofile a TRANSPLANT sweep ofprofilealongpathwould carry atstationsstations — the instrument behind the refusal below, exposed so a caller (or a probe) can measure a path BEFORE asking for the solid. - sweep_
clip_ less - The clip region less the sweep of
toolalongmotion(default on;BREP_SWEEP_CLIP_LESS=0answers None, so the caller subtracts the sweep): the workpiece the clip names (a rod: radius from 0, no angle window) with everything the tool passes through taken out, built by the level engine directly, without a boolean. At each level the material is what the sweep leaves; its walls are the sweep’s own, and at the clip’s outer radius the boundary is the circle less the sweep’s spans there. Over a crest (BREP_SWEEP_CLIP_LESS_CREST, on unless =0) it is what stays below the crest.Nonewhere this is not built (another class than a screw, a crest with that switch off, a sweep that never reaches the outer radius or leaves more than one region, or anything the level engine refuses): the caller subtracts the sweep instead, and that route answers for its own refusals. - sweep_
closure - The CLOSURE a sweep of
profilealongpathapplies — the frame-closure policy’s report, exposed so a caller can read the twist a closed sweep laid down (seeSweepClosure).Nonefor an OPEN path, which has no lap to close. - sweep_
ellipsoid_ along_ line - Everything the ellipsoid about
centerpasses through as it slides without turning byslide. Its semi-axes aresemi_axes[0]alongx_direction,semi_axes[1]square to it towardy_hint, andsemi_axes[2]along their cross product (ascrate::make_ellipsoid_brep). - sweep_
envelope_ bodies - The swept union as BODIES — the entry for a caller that can take more than
one, which is what a partial turn past
ρκ = 1really sweeps. - sweep_
prism_ along - The whole sweep of a prism carried by a frame along a planar curve (its
axis along the frame’s up): the prism
outline(a convex polygon in the start frame: first coordinate along the start tangent, second along up × tangent) betweenfromandtoalong up. The motion is planar, so the sweep is the plane region the moving outline covers, extruded. That region is found exactly: its boundary lies on the outline’s corner paths, the paths of each edge’s grazing point (where the edge’s normal is square to the velocity), and the outline’s edges at the two ends; these are split where they meet, and a piece is kept where one side of it is covered and the other not (folds, where a corner digs past a side, come out right). - sweep_
profile_ along_ chain - Sweep a CLOSED PLANAR profile along a CHAIN of path curves joined head-to-tail — the multi-segment entry point, with the twist and anchor options the single-curve family exposes as separate functions folded into one signature (the feature layer picks all three per loop, so splitting them four ways here would only push the same match into the caller).
- sweep_
profile_ along_ chain_ reported sweep_profile_along_chainwith the requested wall TOLERANCE (mm;NoneforSWEEP_DEFAULT_TOLERANCE) and the measured bound the build reached, for a caller that carries it on (the sweep features put it inFeatureResult::approximations). The station lane refines its stations until the loft’s own interpolant stands withintoleranceof the kinematic sweep’s wall, or the station cap stops it; the report says which.- sweep_
profile_ along_ chain_ with_ stations sweep_profile_along_chainwith an explicit STATION budget and no twist — the entry a caller with a long, smooth chain uses when the default 32 stations would under-sample it (a wire-harness bundle along a many-anchor spline: three pieces per span, so a handful of spans already starves each piece of stations). The budget is spread over the chain by arc length exactly as the twisted builder’s law spreads its own; the 1024-station cap and the tangent-continuity refusal apply unchanged.- sweep_
profile_ along_ chain_ with_ stations_ reported sweep_profile_along_chain_with_stationswith the requested wall tolerance (Nonefor the default) and the measured bound: the caller’s budget is the FLOOR, refined where the measured deviation is over the tolerance.- sweep_
profile_ along_ path - Sweep a CLOSED PLANAR profile loop along a path curve (§3.3/§5.7),
TRANSPLANTING the profile onto the path — see
SectionPlacementfor the other reading, and for why the choice changes the solid. - sweep_
profile_ along_ path_ anchored sweep_profile_along_pathwith an explicit placement anchor (seeProfileAnchor) — the hole-loop cutter path: the swept loop is validated as usual but PLACED in its outer loop’s frame.- sweep_
profile_ along_ path_ buffer - sweep_
profile_ along_ path_ json - sweep_
profile_ helix - The helix is transcendental, not exactly NURBS-representable, so the path
is FIT: points (R·cosθ, R·sinθ, pitch·θ/2π) in the axis frame are sampled
uniformly in θ and globally interpolated with a cubic (
interpolate_curve— the same machinery every other fitted path here uses). DENSITY: 64 samples per turn, capped at 1025 total nodes. Cubic interpolation error on a circle of radius R with node spacing Δθ is ≈ R·Δθ⁴/384: ~2·10⁻⁷·R at 64/turn, and still ~6·10⁻⁵·R at the cap’s worst case (16/turn at the 64-turn limit) — orders below any profile a caller could sweep without self-intersecting. Uniform-in-θ parameters are exact chord-length for a helix (constant speed), which is what the averaged-knot interpolation assumes. - sweep_
profile_ helix_ buffer - sweep_
profile_ helix_ json - sweep_
profile_ round_ corners - The solid
sectionsweeps along the straight runs throughpath, turned about each corner. - sweep_
profile_ twisted - Twisted path sweep (§5.7): identical to
sweep_profile_along_path, but the profile additionally ROTATES about the path tangent, linearly in ARC LENGTH, from 0 at the sweep start totwist_angleradians (right-handed about the tangent) at the end. The arc-length fraction comes from the sampled station polyline, not the raw path parameter, so a non-uniformly parameterized path still twists uniformly in space. - sweep_
profile_ twisted_ anchored sweep_profile_twistedwith an explicit placement anchor: the hole loop twists about the SAME path axis as its outer loop (shared anchor), so the cutter stays registered with the outer wall through the whole twist.- sweep_
profile_ twisted_ buffer - sweep_
profile_ twisted_ json - sweep_
profile_ twisted_ scaled - Twisted path sweep with a SCALING LAW:
sweep_profile_twisted, with the section also scaled about its anchor origin (the profile’s centroid, which the sweep lands on the path) linearly in the same sampled arc-length fraction as the twist, from 1 at the start toend_scaleat the end. - sweep_
profile_ twisted_ within sweep_profile_twistedwith the section’s PLACEMENT, an optional placement anchor (None: the profile’s own, its centroid landed on the path) and the TOLERANCE its stations are refined to (mm;NoneforSWEEP_DEFAULT_TOLERANCE), with the build’s station report.- sweep_
pyramid_ within - What
toolsweeps undermotion(turns about axes through its apex), within the distanceswithin= [r0, r1] from the apex: the cone over the region its section sweeps, capped by planes square to the region’s middle direction (inside r0 for its widest direction, and at r1): within [r0, r1] it is the sweep, beyond it the result is not. Refuses a motion with an advance or an axis missing the apex, a section that is not convex, a range beyond where the sweep is the cone (past the inner end’s farthest point and short of the outer end’s nearest), and a region whose boundary is not one loop. - sweep_
solid - The whole sweep of
toolalongmotion(a single screw, turn or slide), its two end positions included. - sweep_
solid_ along - The whole sweep of a solid of revolution carried by a frame along a
curve. In the riding frame the velocity field is the speed along the
tangent plus the turn about
up, so the grazing loop moves on the tool with the curve’s curvature. It is split at sample times (its structure must not change), each piece sampled exactly, and the walls lofted through those samples (quintic both ways; the samples’ count doubles until the wall is withinLOFT_TARGETof the exact loop at the times between). Caps are the tool’s back at the start and front at the end. - sweep_
solid_ clipped - The sweep of
toolalongmotion, where it lies inclip(the caller cuts a workpiece inside that region). A TURN about the clip’s own axis whose two end positions stay outside the clip’s wedge covers the wedge wholly with the tool’s shadow in (ρ, z): that shadow, turned over the wedge, is the sweep there (a convex polyhedron’s shadow is bounded by conic arcs from its edges and straight lines from its faces, so every surface is exact); a turn about that axis whose ends reach the wedge is refused. A screw or turn about the region’s axis whose tool reaches far past the region’s radius sweeps only the tool’s part that can reach it (seetrim_to_clip). Any other motion gets the whole sweep (sweep_solid). - sweep_
solid_ parts - The sweep of
toolalongmotionas parts whose union it is (a caller cuts a workpiece by all of them). One part where the whole sweep passes once. A convex polyhedron whose sweep folds over itself (a face facing away from a screw’s or turn’s axis grazes along a line inside it, and the faces beyond that line are swept over again) is split by the plane through the axis and that line: each half grazes that face only along its cut edge, and is swept whole. The halves’ walls share cylinders about the axis. - sweep_
solid_ rising - The sweep of
toolalong a turn whose rise grows as it turns, where it lies inclip(assweep_solid_clipped). Its front and back are those at the middle of the motion; a tool whose faces change side along it is refused. - sweep_
solid_ tumbled - The whole sweep of a solid of revolution tumbled by two turns about skew axes. The grazing loop moves on the tool (the instantaneous screw changes with t), so the walls are lofted through exact samples. Where the tumble passes over a point twice (the one-pass probe), the time is bisected into spans each passing once, and the spans’ sweeps are joined (consecutive spans meet along a grazing loop; distant ones overlap).
- sweep_
solid_ within - Build the sweep of
toolalongmotioninsideclip, as one body per connected region of the reduced section. - sweep_
tube_ slid_ across - Everything a tube (the ball of
radiusswept along the curvecentreline(s), s ∈ [0, 1], its ends included) passes through as it slides byslide, inside the slabslab[0] ≤ (x − slab_origin)·n ≤ slab[1](n=slab_normalnormalised), which the tube must cross wholly: before the slab at the start, past it at the end (checked at 8001 points of the centreline, with a margin of the longest step between them). The returned prism along the slide agrees with the sweep inside the slab; the caller cuts a workpiece that lies within it. - sweep_
upright_ along - What an upright solid of revolution passes through carried along a planar
cubic (
UprightSlot::solid), orNonewhere the tool and the curve are not of this class (upright_slot). Whatever the switch: the call a caller makes for this class by name. - swept_
envelope_ volume - The whole swept solid’s closed-form volume: both lobes for a partial turn, the apple alone for a full one (where the lemon is inside it).
- take_
blend_ approximations - Consume EVERY wall-model report recorded on this thread since the last
call, in ONE snapshot, against ALL the bodies a call returned
(
(body name, solid)): a report becomes a typedblend.wall_modelcrate::Approximationon each body carrying its wall — a face with a bit-identical surface AND the report’s name, exactly or as registration renamed it (NAME[k]) — and is dropped when no returned body carries it (a lane that refused, a body a later step discarded). A wall carried by two returned bodies (one surface, bit for bit, in both) is reported on both: the reading is a property of that surface. Reports for one wall collapse to the last. Never a match by name alone.take_blend_approximations(&[])discards everything recorded (the history loop’s stale drain before a feature runs). - take_
blend_ notes - Take every blend note recorded on this thread since the last call. Blending runs on the feature’s own thread (no parallel march), so the history loop’s drain sees every note its feature recorded.
- take_
blend_ timings - Take every entry recorded on this thread since the last call (or the last outermost operation’s start), sorted by measure name.
- take_
crossing_ repairs - Take every repair made on this thread since the last call, leaving the ledger empty. The history loop drains it after each feature so the repair is reported against the feature that made it.
- tessellate_
brep - tessellate_
brep_ json - tessellate_
brep_ watertight - Watertight tessellation of a closed solid: coincident triangulation along
every shared edge, density driven by
chord_tolerance. - tessellate_
brep_ watertight_ checked - Tessellate with certified shared edge samples and typed edge failures. This opt-in entry point does not depend on environment switches.
- tessellate_
brep_ watertight_ face_ stride - Tessellate only the faces whose global sequential index
isatisfiesi % stride == offset, leaving every other face out of the returned mesh. - tessellate_
brep_ watertight_ face_ stride_ with_ samples - As
tessellate_brep_watertight_face_stride, but the caller supplies edge samples already computed (and serialized) bysample_edges_encoded. The worker-pool split uses this sosample_all_edgesruns ONCE (in the prepare step) instead of redundantly in every face-range worker. The samples are deterministic, so meshing against a shared copy is identical to recomputing them locally. - tessellate_
face - tessellate_
face_ json - tessellate_
handle - Tessellate a resident solid to watertight mesh buffers (the buffers cross the boundary; the solid does not).
- thicken_
face_ sheet - §5.9 THICKEN a sheet (an open surface patch over its full parameter domain) into a closed solid.
- thicken_
face_ sheet_ buffer - thicken_
face_ sheet_ json - thicken_
faces - The solid the faces of
solidthatface_pointslie on sweep moving from 0 tothicknessalong their outward normals (inward where it is negative);soliditself is not part of it. The faces are taken as one sheet, with the edges they share, and thickened bythicken_sheet_faceswith sharp joins. - thicken_
sheet_ faces - The sheet
facesthickened bythicknessalong the faces’ normals (negative: against them), its open creases closed ascornerssays. - thicken_
trimmed_ sheet - §5.9 THICKEN a TRIMMED sheet region into a closed solid.
- thicken_
trimmed_ sheet_ buffer - thicken_
trimmed_ sheet_ json - topology_
counts_ native - Topology TOTALS of a resident solid as
(faces, edges, non_degenerate_edges, vertices), read straight off the record: every face of every shell, every edge, every edge that is not a collapsed pole boundary, every vertex. - topology_
kind - Classify a body record by its edge uses (module docs for the predicates).
- topology_
kind_ handle_ native - The body-kind report of a resident solid. A report beside the Euler one, not a gate: no body carries a kind yet. Pure counting, one registry borrow.
- torus_
brep_ json - trace_
tangent_ curve - March the tangent curve through an EXTENDED contact, both ways from the
contact point, and return it typed as a tangent section.
Nonewhen the contact is not extended (an isolated node or point has no curve to march). - transform_
brep - Transform exact BREP geometry without changing entity IDs or parameter
ranges.
reverse_orientationis required for negative-determinant maps. - transform_
brep_ json - transform_
faces solidwith the facesface_pointslie on moved rigidly by the rows[R | t](a point x to R·x + t), the faces round them extended or trimmed to meet them: Transform Face’s motion road (the turn and the slide solved in one re-intersection, its acceptance, and the re-cut and re-drill roads past a refusal). R must be a rotation (orthonormal, determinant +1).- transform_
handle - Rigid/affine transform of a resident solid -> a NEW resident handle (Stage 1b; unblocks Transform/Pattern/bakeTransform from the legacy serialize lane). The result never crosses the boundary as topology. Kernel-produced, so trusted.
- transform_
pivot_ native - The Transform feature’s BBOX_CENTER pivot for a resident source solid. Share the kernel’s vertex-bbox definition with viewport controls; display tessellation bounds would give a different pivot for curved solids.
- trim_
polygons - The chord polygons of
face’s trim loops, as sampled for integration. - trim_
sample_ count - How many chords the containment lanes sample ONE pcurve at:
max(2, (k + 1)(p + 1)·4),kthe pcurve’s distinct interior knots (two knots are one when they differ by no more thanKNOT_DEDUP_EPS, and a knot that close to an end of the active domain is not interior) andpits degree. Knot- and degree-aware, so a spline trim is resolved wherever its shape can bend and a line is two chords. - trim_
station - The pcurve parameter of trim station
indexofcountover[start, end]:start + (end − start)·index / count, evaluated in exactly that order. - uniform_
clamped_ knots - uniform_
clamped_ knots_ json - validate_
brep_ detailed_ json - validate_
brep_ json - validate_
handle_ native - Topology validation issues of a resident solid as
(severity, message)pairs — the native sibling of the JSON validators, for in-process qualification tooling (examples/case_replay.rs). An empty Vec means the incidence checks passed; that is NOT a correctness proof:validate()tests neither connectivity nor face-vs-face self-intersection, and a validating solid can still be the wrong solid. Reads the solid in one registry borrow. - vector_
area_ handle_ native - The vector-area closure of a resident solid: does each closed shell’s TRIMS enclose the zero vector area a closed shell owes, and if not, which faces own the residual. One pass over the trims and the edge curves — no tessellation, no projection — so unlike the crossing scan it is cheap enough for a default gate. Reads the solid in one registry borrow.
- vertex_
endpoint_ gap |p_V − c_E(t_end)|— how far a curve end sits from the vertex point the topology says it meets.- vertex_
tolerance_ from_ edges - Propagate measured tolerances up one level of the entity hierarchy: from a vertex’s incident edges (and the gaps between their ends and the vertex point) to the vertex itself.
- with_
blend_ rebuild_ decline rebuild_displaced_blends’s refusal, as context on the refusal the caller’s own road gave.- write_
3mf - Write
solidsas one 3MF package in millimetres. - write_
3mf_ meshes - Write the mesh instances and appearance recovered by
super::read_3mf. Uses object-local meshes and placements; derived flattened buffers are not used. Unlike solid export, this preserves corner colours and packaged PNGs. - write_
ascii_ stl - Write ASCII STL:
solid {name}, one facet per(normal, corners)item,endsolid {name}. Values print with their ownDisplay, so anf32source keeps its shortestf32text. - write_
binary_ stl - Write the kernel mesh as binary STL.
- write_
glb - Write
solidsas one binary glTF 2.0 document. - write_
obj - Write Wavefront OBJ positions, normals, and indexed triangle faces.
- write_
obj_ text - write_
stl_ bytes
Type Aliases§
- Mat4
- A row-major 4×4 matrix used for STEP assembly placements.