From bd284fb852318cfe34b85b5f1d08571726fab5d9 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 17 Dec 2009 11:23:07 +0000 Subject: [PATCH] *** empty log message *** --- src/INTERP_KERNEL/TransformedTriangle.cxx | 2 +- src/INTERP_KERNEL/TransformedTriangle.hxx | 2 +- src/INTERP_KERNEL/TransformedTriangleMath.cxx | 17 ++++++++--------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/INTERP_KERNEL/TransformedTriangle.cxx b/src/INTERP_KERNEL/TransformedTriangle.cxx index ad4255de3..f206d14db 100644 --- a/src/INTERP_KERNEL/TransformedTriangle.cxx +++ b/src/INTERP_KERNEL/TransformedTriangle.cxx @@ -126,7 +126,7 @@ namespace INTERP_KERNEL _coords[5*Q + 4] = 1 - q[0] - q[1]; _coords[5*R + 4] = 1 - r[0] - r[1]; - resetNearZeroCoordinates(); + resetNearZeroCoordinates(); // initialise rest of data preCalculateDoubleProducts(); diff --git a/src/INTERP_KERNEL/TransformedTriangle.hxx b/src/INTERP_KERNEL/TransformedTriangle.hxx index c950313a5..53122c623 100644 --- a/src/INTERP_KERNEL/TransformedTriangle.hxx +++ b/src/INTERP_KERNEL/TransformedTriangle.hxx @@ -224,7 +224,7 @@ namespace INTERP_KERNEL // Double and triple product calculations // ---------------------------------------------------------------------------------- - void resetNearZeroCoordinates(); + void resetNearZeroCoordinates(); bool areDoubleProductsConsistent(const TriSegment seg) const; diff --git a/src/INTERP_KERNEL/TransformedTriangleMath.cxx b/src/INTERP_KERNEL/TransformedTriangleMath.cxx index e795fe0ec..a9c488267 100644 --- a/src/INTERP_KERNEL/TransformedTriangleMath.cxx +++ b/src/INTERP_KERNEL/TransformedTriangleMath.cxx @@ -73,15 +73,14 @@ namespace INTERP_KERNEL const double TransformedTriangle::TRIPLE_PRODUCT_ANGLE_THRESHOLD = 0.1; - - // after transformation to the U-space, coordinates are inaccurate - // small variations around zero should not be taken into account - void TransformedTriangle::resetNearZeroCoordinates() - { - for (int i=0; i<15; i++) - if (fabs(_coords[i])