Open dcowden opened 5 years ago
Comment by adam-urbanczyk
Thursday May 10, 2018 at 09:46 GMT
Looks like a problem with the cad kernel. Did you try with a different loft based model?
Seems to work in CQ2.0:
Using CQ2.4.0 this problem seems still to be present. Should this ticket be reopened?
Maybe it's a regression in OpenCASCADE. I can also reproduce in CQ commit 551a23157026faef423e7cb7caaf6f84da91a562
(Jan 30) with OCP 7.7.2.
Doesn't work for me as well (cadquery==2.4.0)
wall_thickness = 2.0
## radius
circle_inner = 39.0 / 2.0
box_x_outer = 34.6
box_y_outer = 17.1
box_height = 30.0
funnel_height = 50.0
circle_outer = circle_inner + 2 * wall_thickness
box_x_inner = box_x_outer - 2 * wall_thickness
box_y_inner = box_y_outer - 2 * wall_thickness
result = (
cq.Workplane("front")
.rect(box_x_outer, box_y_outer)
#.faces(">Z")
#.circle(circle_outer)
.workplane(offset=funnel_height)
.circle(circle_outer)
.loft(combine=True)
.shell(-2)
)
display(result)
Oddly enough it works if I use a shell between two circles the same size e.g. a cylinder, but made via the loft tool.
This issue began over on the Google Group here. I'm posting it here so we can keep track of it.
Shelling works fine with the cube example in the documentation.
But no combination of face selections or shell thicknesses seems to be able to make this work.
I used the old
show
function in that example because it provides a stack trace, whereas CQGI'sshow_object
function does not.Here's the main error I get.