Features
Multiple objects in this library support features as argument. These features are applied to the objects acording to gridfinity_build123d.features.FeatureLocation.
Example:
The following code creates a feature rich base:
Base(
features=[
MagnetHole(feature_location=TopCorners()),
ScrewHoleCountersink(feature_location=TopMiddle()),
ScrewHoleCounterbore(feature_location=BottomCorners()),
Weighted(feature_location=BottomMiddle()), # type: ignore[list-item]
],
)
With as result:
Features List
gridfinity_build123d.HoleFeature
gridfinity_build123d.ScrewHole
gridfinity_build123d.MagnetHole
gridfinity_build123d.ScrewHoleCountersink
gridfinity_build123d.ScrewHoleCounterbore
gridfinity_build123d.Weigthed
gridfinity_build123d.Label