Shortcuts
Every Part has one-call shortcuts that build an operation, add it to the part
and return it, so the result can feed the next call:
| Shortcut | Same as |
|---|---|
self.extrude(shape, depth, cut=False, end_condition=None) | add_operation(Extrusion(shape, depth, ...)) |
self.cut_extrude(shape, depth, end_condition=None) | an Extrusion with cut=True |
self.revolve(shape, axis, angle=360, cut=False) | Lathe (axis may be a Line) |
self.fillet(solid, radius, edges=None) | Fillet |
self.chamfer(solid, distance, edges=None) | Chamfer |
self.shell(solid, thickness, faces=None) | Shell |
self.linear_pattern(shape, direction, count, spacing) | LinearPattern |
self.polar_pattern(shape, count, angle=360, axis=[0, 0, 1]) | PolarPattern |
They produce exactly the same DAG as writing the nodes by hand.