moving a workplane origin
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
Hi, I have been using cadquery to produce swept solids. To position the 'end faces' of the solid at specified positions I have been using code similar to this:
`solid = cq.Workplane("XZ").moveTo(50, 0).workplane()`
`solid = solid.polyline([(-10, 10), (10, 10), (10, -10), (-10, -10)]).close()`
Previously, this would create a 20x20 square centered on (50, 0). However, this doesn't work anymore, the square now centers on (0, 0).
Could this be a bug, or maybe this is now the wrong approach to take?
My understanding was that `.moveTo(50, 0).workplane()` would essentially create a new origin at (50, 0) so that the polyline would be placed correctly.
I also notice that if .circle() is used instead of .polyline(), a circle is correctly centered at (50, 0).
Any help with this problem would be greatly appreciated.
Thanks,
John
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.