gumyr / build123d

A python CAD programming library
Apache License 2.0
395 stars 72 forks source link

Hole doesn't work as expected #4

Closed roipoussiere closed 1 year ago

roipoussiere commented 1 year ago

This code:

import build123d as bd

with bd.BuildPart() as washer:
    bd.Cylinder(3, 2)
    bd.Hole(1)

debug(washer.part)

makes a hole on the bottom of the cylinder, with a depth of half its height: image

Hole documentation clearly explains that it should go through: depth (float, optional): hole depth - None implies through part. Defaults to None. From what I understand, either the Hole or the Cylinder doesn't start from (0,0,0).

gumyr commented 1 year ago

See examples/holes.py for multiple tests.