From 4b83774cdbfbf30add9a8fa2f11b1c4ff35179fa Mon Sep 17 00:00:00 2001 From: hwc487 Date: Thu, 26 Apr 2012 12:50:57 -0700 Subject: canvas interaction --- js/helper-classes/3D/snap-manager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'js/helper-classes/3D') diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js index 2c975985..dcfd5ddc 100755 --- a/js/helper-classes/3D/snap-manager.js +++ b/js/helper-classes/3D/snap-manager.js @@ -948,7 +948,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { { // see if we can snap to a contained geometry object - if (hitRec && this.getGLWorld(elt) && !this.isARectangle(elt)) + if (hitRec && this.getGLWorld(elt)) // && !this.isARectangle(elt)) { var localPt = hitRec.calculateElementWorldPoint(); if (hitRec.getType() != hitRec.SNAP_TYPE_ELEMENT) @@ -1346,13 +1346,13 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { var dist = vecUtils.vecDist(2, globalPt, targetScrPt ); if (dist < this.ELEMENT_VERTEX_HIT_RAD) { - console.log( "hit a vertex" ); + //console.log( "hit a vertex" ); // check if the distance is less than // the distance on the current hit record - if (dist <= vecUtils.vecDist(2, targetScrPt, hitRec.getScreenPoint() )) + //if (dist <= vecUtils.vecDist(2, targetScrPt, hitRec.getScreenPoint() )) { - console.log( "rejected - further than existing snap" ); + //console.log( "rejected - further than existing snap" ); hitRec.setScreenPoint( globalPt ); //var localMatInv = hitRec.getPlaneMatrix().inverse(); @@ -1388,7 +1388,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { var dist = vecUtils.vecDist(2, globalPt, targetScrPt ); if (dist < this.ELEMENT_EDGE_HIT_RAD) { - console.log( "hit an edge" ); + //console.log( "hit an edge" ); // check if the distance is less than // the distance on the current hit record -- cgit v1.2.3