gumyr / build123d

A python CAD programming library
Apache License 2.0
505 stars 85 forks source link

Add fillet/chamfer as Shell methods #581

Open jdegenstein opened 7 months ago

jdegenstein commented 7 months ago

Currently I don't believe it is possible to fillet/chamfer edges that belong to a shell. For certain topologies this is a valuable feature. I am not sure if OCCT supports this yet.

gumyr commented 7 months ago
Shell.thicken = Face.thicken
Shell.fillet = Mixin3D.fillet

faces = Cylinder(1, 5).faces().sort_by(Axis.Z, reverse=True)[1:]
shell = Shell(faces)
bottom_edges = shell.edges().group_by(Axis.Z)[0]
shell = shell.fillet(0.001, bottom_edges)
solid = shell.thicken(1)

image The shell doesn't seem to show the fillet though - weird? image