mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-04 02:55:54 +00:00
A refused face is tinted as well as ringed
A face whose boundary is only two small circles (a tube's bend) did not show where it is from its ring alone: its triangles are now drawn over in the error colour at 35%, depth-tested like the selected face's tint, under the ring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5Lzv2n8fyKqD61NCHSF
This commit is contained in:
@@ -3352,6 +3352,8 @@ pub(crate) fn build_highlight(app: &SolveApp) -> GpuScene {
|
||||
// selection's outline.
|
||||
for (body, face) in &app.viewport.refused_ring {
|
||||
let Some(b) = st.body(body).filter(|_| app.session.body_visible(body)) else { continue };
|
||||
// The face itself tinted (a face whose edges are two small circles still reads as one).
|
||||
face_tris(&mut sc, &shown(b), *face, c4(t.error.gamma_multiply(0.35)), false);
|
||||
let m = drawn_mesh(app, b);
|
||||
let hidden = sc.color(c4(t.error.gamma_multiply(0.45)));
|
||||
for (ei, e) in m.edges.iter().enumerate() {
|
||||
|
||||
Reference in New Issue
Block a user