Repository navigation
Add face sketches, curved slots and everyday modeling workflows - #4
Rareuncommon merged 3 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e755bde02c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if s.hasPrefix("plane-"), StandardPlane(rawValue: String(s.dropFirst(6))) != nil { | ||
| refs.append(s) | ||
| continue | ||
| } | ||
| if let plane = doc.refPlanes[s] ?? doc.orderedRefPlanes.first(where: { $0.name == s }) { |
There was a problem hiding this comment.
Preserve plane references when pruning selection
The newly accepted plane selections are not recognized by Document.referenceExists, which only handles sketches and body entities. Consequently, any operation that regenerates the document and calls pruneSelection() removes valid plane-front and plane-N selections, unexpectedly disabling Normal To and other selection-driven behavior. Update the reference validator to recognize standard and existing reference planes.
Useful? React with 👍 / 👎.
| return true | ||
| } | ||
|
|
||
| package var canNormalTo: Bool { sketchState.plane != nil || selectedFace != nil || selection.contains { $0.hasPrefix("plane-") } } |
There was a problem hiding this comment.
Wire plane rows into desktop selection
This enables Normal To only when a plane-* reference is present in selection, but neither desktop tree can create that selection: standard-plane nodes have no select action, and treeSelect(_:) explicitly skips plane.create features. Thus users can invoke the new plane path only through the command bus, while clicking a standard or reference plane leaves Normal To disabled; make those tree rows call selection.set with their plane IDs.
Useful? React with 👍 / 👎.
Changes
Selected part faces now expose Sketch on Face directly in the Features tab. This PR adds ordinary desktop modeling workflows through the shared command layer and fixes regeneration from lost sketch supports.
Validation
ecef55d: native macOS, Windows, Linux and CachyOS (both PR and push runs).Remaining scope
SolidWorks parity remains unfinished. Face sketches require planar support; conversion is non-associative and excludes oblique circles, ellipses and splines. Split excludes splines. Move/Copy handles one body per feature. Up To Vertex takes coordinates. Measurement angle/max/normal modes and sketch geometry remain pending. Body visibility does not add component/sketch/plane display panes; grouped slot relations remain pending. Assemblies, drawings, configurations, simulation and hundreds of other declared capabilities require further implementation. The matrix inventory is not exhaustive verification of every SolidWorks behavior.