diff --git a/src/kiri/core/widget.js b/src/kiri/core/widget.js index ce56e3a7..cd7ee0a0 100644 --- a/src/kiri/core/widget.js +++ b/src/kiri/core/widget.js @@ -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 }); diff --git a/src/kiri/mode/cam/topo3.js b/src/kiri/mode/cam/topo3.js index a8431983..ab8136d8 100644 --- a/src/kiri/mode/cam/topo3.js +++ b/src/kiri/mode/cam/topo3.js @@ -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) {