Skip to main content

Module sketch

Module sketch 

Source
Expand description

Sketch entities and constraints: plain f64 design data.

Points are the only entities with positions of their own; lines, arcs and splines reference points by PointId, so two curves that share an endpoint share the same point and stay connected by construction. Separately drawn points are joined with Constraint::Coincident, which the solver treats the same way (the two points become one set of variables), so connectivity is always structural — never inferred from two positions happening to be close.

Structs§

ConstraintId
Key of Sketch::constraints.
Curve
CurveId
Key of Sketch::curves.
Point
PointId
Key of Sketch::points.
Sketch
A constraint sketch.

Enums§

Constraint
The typical CAD sketch constraints. Distances and lengths are in sketch units, angles in radians.
CurveKind

Type Aliases§

Positions
Every point’s [x, y], by PointId: the sketch’s own positions (Sketch::positions) or a rigid motion of them (see crate::ProfileLoop::to_nurbs).