跳到主要内容

render_entity_map_rpath

类型: 函数
领域: 检查
推荐导入: from cadflow.inspect.brep import render_entity_map_rpath

签名

def render_entity_map_rpath(model_or_path: 'BRepModel | TopoDS_Shape | str | Path', entity_ids: 'Sequence[str]', output_path: 'str | Path', *, title: 'str' = 'BREP entity map', views: 'Sequence[tuple[float, float, str]]' = ((28.0, -45.0, 'isometric'), (90.0, -90.0, 'top / X-Y'), (0.0, -90.0, 'front / X-Z'), (0.0, 0.0, 'side / Y-Z')), highlight_edge_width: 'float' = 6.0, highlight_point_size: 'float' = 18.0, image_size: 'tuple[float, float]' = (18.0, 12.0), dpi: 'int' = 180, linear_deflection: 'float' = 0.12, angular_deflection: 'float' = 0.18, edge_samples: 'int' = 96, context_opacity: 'float' = 1.0, label_mode: "Literal['auto', 'callout', 'legend', 'none']" = 'legend', max_callouts: 'int' = 4, legend_columns: 'int' = 3) -> 'Path'

功能说明

render_entity_map_rpath 是 CadFlow 检查领域的公共函数。

原始 API 说明

Render stable BREP entity IDs without flattening model depth.

The base model stays opaque by default and keeps its true BREP edges. Bodies use colored topology edges, faces use a restrained translucent tint plus boundary edges, edges use thick curves, and vertices use colored points. highlight_edge_width and highlight_point_size make selected edges and vertices visually dominant. A dedicated ID/type key is the safe default; callouts remain available for focused selections.

参数

名称类型必需默认值源码说明
model_or_path'BRepModel | TopoDS_Shape | str | Path'-源码 Docstring 未单独说明。
entity_ids'Sequence[str]'-源码 Docstring 未单独说明。
output_path'str | Path'-源码 Docstring 未单独说明。
title'str''BREP entity map'源码 Docstring 未单独说明。
views'Sequence[tuple[float, float, str]]'((28.0, -45.0, 'isometric'), (90.0, -90.0, 'top / X-Y'), (0.0, -90.0, 'front / X-Z'), (0.0, 0.0, 'side / Y-Z'))源码 Docstring 未单独说明。
highlight_edge_width'float'6.0源码 Docstring 未单独说明。
highlight_point_size'float'18.0源码 Docstring 未单独说明。
image_size'tuple[float, float]'(18.0, 12.0)源码 Docstring 未单独说明。
dpi'int'180源码 Docstring 未单独说明。
linear_deflection'float'0.12源码 Docstring 未单独说明。
angular_deflection'float'0.18源码 Docstring 未单独说明。
edge_samples'int'96源码 Docstring 未单独说明。
context_opacity'float'1.0源码 Docstring 未单独说明。
label_mode"Literal['auto', 'callout', 'legend', 'none']"'legend'源码 Docstring 未单独说明。
max_callouts'int'4源码 Docstring 未单独说明。
legend_columns'int'3源码 Docstring 未单独说明。

返回值

类型: 'Path'

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

行为与约束

  • 该操作会写入外部产物。交付前应验证返回路径或输出文件。

导入检查

from cadflow.inspect.brep import render_entity_map_rpath

相关内容