diff --git a/src/main/mesh.js b/src/main/mesh.js index 0dde74ea..b2cc6fce 100644 --- a/src/main/mesh.js +++ b/src/main/mesh.js @@ -35,7 +35,7 @@ function init() { color: 0xcccccc, zoom: { reverse: true, speed: 1 }, size: { width: 300, depth: 300, height: 2.5, maxz: 2.5 }, - grid: { major: 25, minor: 5, majorColor: 0x999999, minorColor: 0xcccccc } + grid: { major: 25, minor: 5, majorColor: 0x999999, minorColor: 0xcccccc }, }); space.view.setZoom(zoomrev, zoomspd); space.useDefaultKeys(false); @@ -146,14 +146,14 @@ broker.subscribe('space_init', data => { break; case 'ArrowLeft': if (shiftKey) { - api.selection.rotate(0,rv,0).floor(); + api.selection.rotate(0,-rv,0).floor(); } else { api.selection.rotate(0,0,rv).floor(); } break; case 'ArrowRight': if (shiftKey) { - api.selection.rotate(0,-rv,0).floor(); + api.selection.rotate(0,rv,0).floor(); } else { api.selection.rotate(0,0,-rv).floor(); } diff --git a/src/mesh/object.js b/src/mesh/object.js index 09ee4684..f7c6b713 100644 --- a/src/mesh/object.js +++ b/src/mesh/object.js @@ -120,7 +120,7 @@ mesh.object = class MeshObject { new THREE.Vector3(center.x, center.y, center.z), new THREE.Vector3(size.x, size.y, size.z) ); - let helper = this._boundsBox = new THREE.Box3Helper(b3, 0x1155aa); + let helper = this._boundsBox = new THREE.Box3Helper(b3, 0x555555); world.add(helper); } } diff --git a/src/moto/space.js b/src/moto/space.js index 53b682b0..82a593ea 100644 --- a/src/moto/space.js +++ b/src/moto/space.js @@ -470,22 +470,22 @@ ruler.xo = xh - xo; ruler.yo = yh - yo; - for (let x=0; x>x1; x -= unitMinor) { + for (let x=-unitMinor; x>x1; x -= unitMinor) { let oh = isRound ? Math.sqrt(1-(x/xh)*(x/xh)) * yh : yh; let arr = modMatch(x, unitMajor) ? majors : minors; arr.append({x:x-xo, y:-oh, z:zp}).append({x:x-xo, y:oh, z:zp}); } - for (let x=0; xy1; y -= unitMinor) { + for (let y=-unitMinor; y>y1; y -= unitMinor) { let ow = isRound ? Math.sqrt(1-(y/yh)*(y/yh)) * xh : xh; let arr = modMatch(y, unitMajor) ? majors : minors; arr.append({x:-ow, y:y-yo, z:zp}).append({x:ow, y:y-yo, z:zp}); } - for (let y=0; y