Expand description
CAM simulation player rendering (lane C17, row 2): the viewport overlay
groups of the simulated stock (with an optional deviation colour map and
its legend), the tool with shank and holder at a scrub pose along any
tool axis, and collision / gouge markers. Pure functions over the
brep_cam payloads; the panel in BREP_app pushes the groups through
WidgetRegistry::set_overlay_json.
Structs§
- Marker
- A collision or gouge marker.
Constants§
- BELOW_
PART_ COLOR - COLLISION_
COLOR - Marker colours.
- EXCESS_
COLOR - EXCESS_
HIGH_ COLOR - Remaining-stock colours beyond the deviation ones: excess far above the tolerance, and stock below the part (never attributed to a face).
- GOUGE_
COLOR - GOUGE_
MARK_ COLOR - MARKS_
GROUP - STOCK_
COLOR - Stock surface colour (no deviation map).
- STOCK_
GROUP - Overlay group names.
- TOOL_
GROUP - WITHIN_
COLOR - Deviation colours: within tolerance, excess stock, gouge.
Functions§
- deviation_
color - Colour of a deviation value: blended toward the class colour by how far
it sits beyond the tolerance (saturated at
scalebeyond it). - deviation_
legend - The legend of a deviation map: stops from the largest gouge to the largest excess with their colours, and the tolerance.
- marks_
group - The markers as a point group; none removes the group.
- remaining_
color - Remaining-stock bands, by signed remaining material
v(mm) and the operation tolerancetol: gouge red below -tol, within green in ±tol, excess blue up to 10·tol, yellow above (and where the part is out of reach). - remaining_
group - The stock surface coloured by remaining material, vertex by vertex (see
remaining_color), in MODEL coordinates. An empty mesh removes the group. - remaining_
legend - The remaining-stock legend: the four bands with their edges in mm and colours, the tolerance, the vertex counts per class and per band, and the largest finite excess and the deepest gouge.
- stock_
group - The stock surface as a triangle overlay group in MODEL coordinates
(
to_modelis the setup’s machine-to-model transform). With a deviation map each vertex takes the colour of the column under it; without one the stock colour. An empty mesh removes the group. - stock_
stl - ASCII STL of the stock mesh in MODEL coordinates.
- tool_
group - The tool’s wireframe (cutting part, shank, holder in their colours) with
its tip at
tipalong the unitaxis, in machine coordinates, mapped to the model byto_model.