add hole and perimeter offset compensation as expert settings

This commit is contained in:
Stewart Allen 2025-09-29 19:11:24 -04:00
commit 1cca293495
8 changed files with 44 additions and 10 deletions

View file

@ -782,9 +782,11 @@ class Widget {
}
if (set) {
let dark = this.api.space.is_dark();
let cam = this.api.mode.is_cam();
let color = dark && !cam ? 0xffffff : 0;
let angle = this.api.conf.get().controller.edgeangle || 20;
let edges = new THREE.EdgesGeometry(mesh.geometry, angle);
let material = new THREE.LineBasicMaterial({ color: 0 });
let material = new THREE.LineBasicMaterial({ color });
this.outline = new THREE.LineSegments(edges, material);
this.outline.renderOrder = -20;
mesh.add(this.outline);