fix(assembly): extend findPlacement() datum and origin handling (#55) #83

Merged
forbes merged 1 commits from fix/assembly-datum-placement into main 2026-02-09 02:11:51 +00:00

1 Commits

Author SHA1 Message Date
forbes
b7374d7b1f fix(assembly): extend findPlacement() datum and origin handling (#55)
Some checks failed
Build and Test / build (pull_request) Has been cancelled
Add support for missing datum and origin object types in the Assembly
solver's findPlacement() function:

- App::Plane: handle XY/XZ/YZ origin planes with correct rotations
- App::Point: handle origin point (identity placement)
- PartDesign::Line: extract edge midpoint and direction from shape
- PartDesign::Point: extract vertex position from shape geometry
  instead of returning raw obj.Placement
- Add obj.Shape.isNull() validation to all PartDesign datum branches
- PartDesign::Plane falls back to obj.Placement on invalid shape
  instead of falling through to App.Placement()

Closes #55
2026-02-08 19:53:49 -06:00