Skip to main content

Module session

Module session 

Source
Expand description

SketchSession — the in-flight editing/display state for one sketch.

S0 holds the essentials the read-only overlay needs — the solved SketchDoc, the plane PlaneFrame it lives on, and the last SketchDiagnostics (DOF + mobility) — plus stub fields the interactive slices (S2 picking, S3 tools, S5 dimensions) will fill in. Constructing a session solves the doc once; resolve re-solves after edits.

Structs§

SketchSession
One sketch’s live session: solved document + plane + diagnostics, with stubs for the interaction state later slices own.

Functions§

constraint_ref
Build a {"kind":"constraint","id":<id>} entity ref — a CONSTRAINT is selectable like a point/geometry (picked near its glyph or dimension leader) so it can be emphasized + deleted; deleting it drops only the constraint, never its geometry.
entity_ref_eq
Whether two optional entity refs are equal (both absent, or both present and refs_equal) — the hover-changed test.
geometry_ref
Build a {"kind":"geometry","id":<id>} entity ref.
point_ref
Build a {"kind":"point","id":<id>} entity ref.
refs_equal
Whether two entity refs name the same entity (same kind, same id under id_key).