forked from 1b-agent/fieldcraft-upstream
render: the bodies of a design with several in their own colours
Geometry triangles remember their surface (body); the viewport and the headless pictures draw each body of a multi-body design, such as the cells of a partitioned part, in its own colour from the theme (eight in turn), and a single body in the geometry colour as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NmAttHhUZTokgPeEJia8sm
This commit is contained in:
1 parent
7f5399c7e9
commit
98d2f55407
4 files changed
+63
-3
No files matched your search
@@ -79,7 +79,11 @@ pub fn build(display: &DisplayMesh, style: Style, show: Show, t: &Tokens) -> Sce
|
||||
s.tris = display.tris.iter().map(|d| SceneTri { p: d.p, normal: d.normal, color: rgb(t.element(d.kind)) }).collect();
|
||||
}
|
||||
if !mesh_faces && show.geometry {
|
||||
s.tris.extend(display.surface_tris.iter().map(|d| SceneTri { p: d.p, normal: d.normal, color: rgb(t.geometry) }));
|
||||
s.tris.extend(display.surface_tris.iter().map(|d| SceneTri {
|
||||
p: d.p,
|
||||
normal: d.normal,
|
||||
color: rgb(display.body_color(d, t.geometry, &t.bodies)),
|
||||
}));
|
||||
}
|
||||
}
|
||||
if style != Style::Shaded && show.mesh {
|
||||
|
||||
Reference in new issue
Block a user