expand outside contour by resolution pixel. mute dark part outlines
This commit is contained in:
parent
6417dd5678
commit
25bcba1f2e
2 changed files with 2 additions and 2 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue