Design tab: body edges 2 px wide

Seen on the rig: at 1.5 px the body edges read as hairlines next to the
sketch and selection strokes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QK4VgguuCAk2hZLWgcjJb9
This commit is contained in:
Claude
2026-09-30 08:34:46 +00:00
parent a4387e93f2
commit 1ff8fc465c
+1 -1
View File
@@ -3468,7 +3468,7 @@ void DesignSketchTool::render_body_edges()
const Camera& cam = wxGetApp().plater()->get_camera();
const Vec3d vd = cam.get_dir_forward();
const double px = 1.0 / std::max(cam.get_zoom(), 1e-6);
const double hw = 0.75 * px; // ~1.5 px wide
const double hw = 1.0 * px; // ~2 px wide: at 1.5 the lines read as hairlines
// Pulled toward the eye by a few pixels, so the line wins the depth test against the two
// faces meeting at the edge while a face in front of it still hides it.
const Vec3d pull = -vd * (3.0 * px);