We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5147dd8 + 3131a1f commit 9e6d323Copy full SHA for 9e6d323
doc/examples.rst
@@ -1043,8 +1043,9 @@ A Parametric Enclosure
1043
lowerLid = lid.translate((0, 0, -p_lipHeight))
1044
cutlip = lowerLid.cut(bottom).translate((p_outerWidth + p_thickness, 0, p_thickness - p_outerHeight + p_lipHeight))
1045
1046
- # compute centers for counterbore/countersink or counterbore
1047
- topOfLidCenters = cutlip.faces(">Z").workplane().rect(POSTWIDTH, POSTLENGTH, forConstruction=True).vertices()
+ # compute centers for screw holes
+ topOfLidCenters = (cutlip.faces(">Z").workplane(centerOption="CenterOfMass")
1048
+ .rect(POSTWIDTH, POSTLENGTH, forConstruction=True).vertices())
1049
1050
# add holes of the desired type
1051
if p_boreDiameter > 0 and p_boreDepth > 0:
0 commit comments