Skip to main content

Module editor

Module editor 

Source
Expand description

Editing a sketch step: choosing its plane, then drawing in it with tools, constraining what is drawn, and dragging it — every gesture decided here and answered with a new sketch, which is solved before it is returned.

Drawing snaps the way constraints say, never by moving geometry onto what it is near: a point placed on an existing point is that point, one placed on a curve is constrained onto it (Constraint::PointOnCurve), one placed on the sketch’s origin is fixed there, and a line drawn nearly horizontal or vertical gets that constraint. Proximity only suggests; the constraint is what the sketch then holds.

Structs§

SketchSession
The temporary state of editing a sketch. What is selected is the editor’s: the keys of the visuals of the points, curves and constraints selected.

Enums§

Tool
A drawing tool, or selecting.