Different workplane origin position after cut solid and after cutBlind
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
Hello,
I am trying to cut some figure from base figure horizontally and then make some drawings on a vertical surface of the same base figure and I have noted, that when I take vertical workplane of the solid, horizontal position of the center is different, depending on how I have made a cut - either with cutBlind or cutting extruded solid of the same shape.
My simplified code:
~~~python
box1 = (
cq.Workplane("XY")
.rect(6, 10, centered=(False, True))
.extrude(4)
)
box1_cutBlind = (
box1.faces("Z").workplane()
.rect(4, 3, centered=(False, True))
)
#show_object(box1_cutBlind)
#show_object(box1_cutSolid)
show_object(box1)
#show_object(box2_v1)
show_object(box2_v2)
~~~
box1: either box1_cutBlind and box1_cutSolid visually give the same result. "offset" param tunes horizontal position of the cut solid. Then box2_v2 draws a rectangle on the top face of the original box1, one of the edges of the rect is placed on the 0 position of X.
So, tuning 'offset' param would move horizontal position of the cut solid on axes X. With box1_cutBlind this would also move topmost rectangle along the X axes. With box1_cutSolid option the topmost rectangle would always stay on the 0 position on axes X.








Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.