Files
make-cad/docs/skill/references/docs/api/DimDecl.md
T
NiJingzhe 8261a28545 feat(render): multi-view screenshots with tags, callouts, legend and axes
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).
2026-09-04 03:52:21 +08:00

674 B

DimDecl

Class Definition

class DimDecl(kind: str, view: str, semantic: str, caption: str, value: float | None = None, p1: tuple | None = None, p2: tuple | None = None, center: tuple | None = None, radius: float | None = None, at: float | None = None, datum: str | None = None, side: str | None = None, row: int = 0, out: float = 8.0, dec: int = 0, prefix: str = '', covers: list = field(default_factory=list), name: str = '')

Source: dxf_engine/model.py

Import Surface

  • drawing namespace: from simplecadapi.dxf_engine import DimDecl

Description

一条尺寸声明。kind=定位(position)尺寸必须在 datum 里引用已声明基准。