feat(inspect): inspect.brep is part of the default install

matplotlib moves to the core dependencies; the inspect extra stays as an empty alias so older
install commands work. The wheel smoke test renders a STEP through inspect.brep.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
NiJingzhe
2026-10-25 16:28:55 +08:00
parent 9c922886cd
commit 3788f03de1
9 changed files with 29 additions and 23 deletions
+7
View File
@@ -66,6 +66,13 @@ def main() -> None:
scad.render_screenshot_rpath(shapes=[body], output_path=str(png))
assert png.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n"
# BREP inspection ships in the default install and draws with the same renderer (no VTK).
from simplecadapi.inspect import brep
views = folder / "views.png"
brep.render_step_views_rpath(str(step), str(views), image_size=(6.0, 4.0), dpi=60)
assert views.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n"
# Sketch solver and the product layer.
part = scad.make_part_rpart("plate", body)
assembly = scad.make_assembly_rassembly("a")