-
Notifications
You must be signed in to change notification settings - Fork 386
Open
Labels
Description
To Reproduce
import cadquery as cq
import math
OP = cq.Vector(0, 0, 0)
X = cq.Vector(1, 0, 0)
Y = cq.Vector(0, 1, 0)
Z = cq.Vector(0, 0, 1)
wr_elp = cq.Wire.makeEllipse(15, 16, OP, Z, X)
wr_circ =cq.Wire.makeCircle(16, OP, Z)
sld_lofted = (
cq.Workplane()
.add(wr_elp)
.toPending()
.add(wr_circ.moved(0, 0, 30))
.toPending()
.loft()
)
# show_object(sld_lofted)
wr_sectioned = (
cq.Workplane(origin=(0, 0, 5) )
.add(sld_lofted)
.section()
.wires()[0]
)
# show_object(wr_sectioned)
two_ring_wires = (
cq.Workplane(origin=(0, 0, 5))
# ring1
.add(wr_sectioned)
.toPending()
.offset2D(5)
# ring2
.add(wr_sectioned)
.toPending()
.offset2D(-3)
#.extrude(10)
)
show_object(two_ring_wires)
Only when two wires are in the workplane, this bug happends. If comment out one of ring1/ring2, you'll get a closed wire.
Environment
OS: Linux
Python 3.11
CadQuery installed by pip install cadquery
Was CadQuery installed using Conda?: no
Using: