Skip to content

Add sketch menu drawing and transform tools - #74

Open
WC3D wants to merge 3 commits into
Formsmith746:mainfrom
WC3D:feat/sketch-menu
Open

Add sketch menu drawing and transform tools#74
WC3D wants to merge 3 commits into
Formsmith746:mainfrom
WC3D:feat/sketch-menu

Conversation

@WC3D

@WC3D WC3D commented Aug 25, 2026

Copy link
Copy Markdown

Adds new geometry and editing commands to the sketch toolbar:

  • Draw: center/two-point circles, corner/center rectangles, polygons with side-count control, placed text
  • Create / Transform: offset paths, mirror across axis or selected segment, rectangular/circular patterns
  • Inspect: driving length dimensions, reference distance dimensions (point/midpoint/intersection anchors), and horizontal/vertical/fixed constraints

Also includes region selection so overlapping and nested profiles (sketches within sketch) can be individually selected, modified, and unselected before extruding. Adds .skf persistence for the new sketch entities, plus unit and real-kernel e2e coverage.

Follow-ups: #76 (extrusion hole-assignment fix) and #75 (Project + Sweep tools) stack on top of this branch.

Scope is intentionally limited to the sketch menu; construction-plane shapes will follow separately.

Expand the sketch toolbar with new geometry and editing commands:

Draw tools: center-point circle, two-point circle, corner/center
rectangle, inscribed/circumscribed/edge polygon with a side-count
stepper, and placed sketch text.

Create / Transform: offset paths, mirror across an axis or selected
segment, and rectangular/circular patterns driven by a small options
panel.

Inspect: dimension tool with driving length dimensions, reference
distance dimensions between point/midpoint/intersection anchors,
and horizontal/vertical/fixed constraints with a lightweight solver.

Supporting changes: planar region detection so extrudes can target
overlapping profiles (with region-aware OCCT extrude + healing),
geometry libs for the new tools, .skf persistence for constraints/
dimensions/texts, and unit plus real-kernel e2e tests.
A CSS extraction pass dropped 33 rules for classes that existed
upstream but were restyled by the sketch menu work: selectable
extrusion regions, sketch points (incl. fixed state), constrained
segments, segment dimension labels, drag/curve handles, measurement
points, polygon side stepper, constraint inspector, image resize
handle, grid settings, and toolbar disabled states. Without them,
selected extrusion profiles gave no visual feedback.
@WC3D
WC3D force-pushed the feat/sketch-menu branch from 5dfd214 to 550ddf3 Compare August 25, 2026 07:47
The closed-profile hit-target overlay sat above the region fill
layer in the sketch SVG, so with Select active every click inside a
profile started a whole-shape drag instead of toggling that
region's extrusion selection. Region fills now receive clicks as
intended; whole-shape dragging still works via marquee selection
and selected-shape handles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant