v0.3.1
What's new
Added
lint_drawing()gains aview_shapesparameter (#159, #160) for checking projected view outlines against the rest of the drawing. Pass a list of build123d shapes representing the view bounding regions;lint_drawing()emitsview_annotation_overlap(warning) when an annotation's bbox overlaps a view outline, andview_overlap(warning) when two view outlines overlap each other.
issues = lint_drawing(
all_anns,
drawing_scale=SCALE,
view_shapes=[front_view, plan_view, side_view, iso_view],
)Fixed
pyproject.tomlversion corrected to0.3.1— the v0.3.0 release tag was created but the version field was never bumped from0.2.0.- Self-overlap false positive: a shape passed in both
itemsandview_shapesno longer generates a spuriousview_annotation_overlapwarning.
See CHANGELOG for full details.