8261a28545
render_screenshot_rpath now defaults to a multi-view grid instead of a single view: one PNG with a panel per SCREENSHOT_VIEWS entry (isometric, top, front, side), carrying the same highlight-tag color groups, callout labels (2-D leader-line style, projected per panel), legend and — new for the grid engine — per-panel axis triads. - The multi-view grid engine (_render_polydata_views[_in_process]) gains show_axes: a vtkAxesActor per panel, sized from the visible bounds, forwarded through the macOS render worker protocol. - _render_sdk_screenshot_rpath keeps all of its view-independent tag-to-group / callout-anchor / legend computation and routes through the grid engine when views is provided; image_size (pixels) maps to inches*dpi=100 so pixel dimensions are preserved. - Public API: new views parameter; default (view='auto') resolves to SCREENSHOT_VIEWS; an explicit view keeps the legacy single-view path unchanged. zoom only applies to the single-view camera. - render_shape_views_rpath is unchanged: it remains the raw-TopoDS_Shape entry for the STEP inspection family; both entries now share one grid engine with identical annotation capabilities. BEHAVIOR CHANGE: the default output of render_screenshot_rpath switches from a single-view image to the 4-panel grid. Callers passing an explicit view are unaffected. ty: no new diagnostics (1043 before and after). Auto-doc pages regenerated. Full suite: 1432 passed, 5 skipped (7 new tests: wiring, custom views, legacy single-view routing, two real renders, constant shape, empty-views rejection).
369 B
369 B
CenterDecl
Class Definition
class CenterDecl(view: str, p1: tuple | None = None, p2: tuple | None = None, arc: tuple = None)
Source: dxf_engine/model.py
Import Surface
- drawing namespace:
from simplecadapi.dxf_engine import CenterDecl
Description
中心线声明:p1/p2 直线中心线,或 arc=(cx,cy,r,a0,a1) 圆弧中心线。