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).
412 B
412 B
ViewDecl
Class Definition
class ViewDecl(name: str, shape: object, n: tuple, xd: tuple, align: dict = field(default_factory=dict), anchor: tuple | None = None)
Source: dxf_engine/model.py
Import Surface
- drawing namespace:
from simplecadapi.dxf_engine import ViewDecl
Description
HLR 投影视图。n=观察方向, xd=投影面内屏幕右方向; align 定义布局约束。