You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added docs for new extrude capabilities
Added examples for extrude and cutblind until extrusion parameter
Updated weird leftover text in Example page
* added note on relative axis coords for Workplane.revolve
* added mixed extrude cutblind example
Here is a typical situation where extruding and cuting until a given surface is very handy. It allows us to extrude or cut until a curved surface without overlapping issues.
677
+
678
+
.. cadquery::
679
+
680
+
import cadquery as cq
681
+
682
+
sphere = cq.Workplane().sphere(5)
683
+
base = (cq.Workplane(origin=(0,0,-2))
684
+
.box(12,12,10)
685
+
.cut(sphere)
686
+
.edges("|Z")
687
+
.fillet(2)
688
+
)
689
+
sphere_face = base.faces(">>X[2] and (not |Z) and (not |Y)").val()
690
+
base = (base
691
+
.faces("<Z")
692
+
.workplane()
693
+
.circle(2)
694
+
.extrude(10)
695
+
)
696
+
697
+
shaft = (cq.Workplane()
698
+
.sphere(4.5)
699
+
.circle(1.5)
700
+
.extrude(20)
701
+
)
702
+
703
+
spherical_joint = (base.union(shaft)
704
+
.faces(">X")
705
+
.workplane(centerOption="CenterOfMass")
706
+
.move(0,4)
707
+
.slot2D(10,2,90)
708
+
.cutBlind(sphere_face)
709
+
.workplane(offset=10)
710
+
.move(0,2)
711
+
.circle(0.9)
712
+
.extrude("next")
713
+
)
714
+
715
+
result = spherical_joint
716
+
717
+
.. warning::
718
+
719
+
If the wire you want to extrude cannot be fully projected on the target surface, the result will
720
+
be unpredictable. Furthermore the algorithm in charge of finding the candidates faces do it's
721
+
search by counting all the faces intersected by a line created from your wire center along your
722
+
extrusion direction. So make sure your wire can be projected on your target face to avoid
0 commit comments