Skip to content
Browse files

updating picking to use c3dl.TOLERANCE instead of hard-coded 0.00001

  • Loading branch information...
1 parent 5dcff29 commit 46246dbf8700e7444a3763e0078cb5be6b154a42 @Callaghan Callaghan committed Mar 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 c3dl/interaction/picking.js
View
2 c3dl/interaction/picking.js
@@ -568,7 +568,7 @@ c3dl.rayIntersectsTriangle = function (orig, dir, vert0, vert1, vert2)
// should be near zero.
var diff = area - (area1 + area2 + area3);
- if(Math.abs(diff) <= 0.0001) {
+ if(Math.abs(diff) <= c3dl.TOLERANCE) {
//get vector from ray origin to poi
var otherdir = c3dl.subtractVectors(POI,orig);
//get unit vector of that

0 comments on commit 46246db

Please sign in to comment.
Something went wrong with that request. Please try again.