expand outside contour by resolution pixel. mute dark part outlines

This commit is contained in:
Stewart Allen 2025-12-15 11:50:10 -05:00
commit 25bcba1f2e
2 changed files with 2 additions and 2 deletions

View file

@ -796,7 +796,7 @@ class Widget {
if (set) {
let dark = this.api.space.is_dark();
let cam = this.api.mode.is_cam();
let color = dark ? 0 : 0x888888;
let color = dark ? 0x444444 : 0x888888;
let angle = this.api.conf.get().controller.edgeangle || 20;
let edges = new THREE.EdgesGeometry(mesh.geometry, angle);
let material = new THREE.LineBasicMaterial({ color });

View file

@ -123,7 +123,7 @@ export class Topo {
const vertices = widget.getGeoVertices({ unroll: true, translate: true });
const wbounds = widget.getBoundingBox();
if (!inside) {
wbounds.expandByVector({ x: toolDiameter/2, y: toolDiameter/2, z: 0 });
wbounds.expandByVector({ x: toolDiameter/2 + resolution, y: toolDiameter/2 + resolution, z: 0 });
}
if (contourY) {