construction.Feature

construction.Feature(kind, faces, *, axis=None, solid=None, profiles=())

The record a generator leaves on the profiles it consumed.

extrude(profile, depth) returns an SDF, and the SDF is the thing the renderer wants — but the viewer addresses geometry by the sketch that produced it. Registering the feature on its profile is what lets the construction payload list a sketch’s faces without the payload builder ever seeing the SDF tree.

Parameters

Name Type Description Default
kind str extrude, revolve, or loft. required
faces FaceSet The feature’s analytic faces. required
axis Axis | None The feature’s axis, for revolves. None
solid The generated SDF, for callers that want to walk back to it. None
profiles tuple Every profile the feature consumed, when there is more than the one it is registered on — a loft’s two ends. The feature is registered on the first; the rest are only reachable from here. ()