Revision: 42003
http://brlcad.svn.sourceforge.net/brlcad/?rev=42003&view=rev
Author: brlcad
Date: 2011-01-07 08:52:59 +0000 (Fri, 07 Jan 2011)
Log Message:
-----------
use NEAR_ZERO instead of ON_NearZero.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp
brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp
Modified: brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp 2011-01-07
08:51:30 UTC (rev 42002)
+++ brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp 2011-01-07
08:52:59 UTC (rev 42003)
@@ -72,11 +72,11 @@
for (int i = 0; i < allsegments.Count(); i++) {
pstart = (*b)->m_C3[i]->PointAtStart();
pend = (*b)->m_C3[i]->PointAtEnd();
- if (ON_NearZero(ptmatch.DistanceTo(pstart), ON_ZERO_TOLERANCE)
&& (curvearray[i] == -1)) {
+ if (NEAR_ZERO(ptmatch.DistanceTo(pstart), ON_ZERO_TOLERANCE) &&
(curvearray[i] == -1)) {
curvecount = i;
ptmatch = pend;
i = allsegments.Count();
- if (ON_NearZero(pend.DistanceTo(ptterminate),
ON_ZERO_TOLERANCE)) {
+ if (NEAR_ZERO(pend.DistanceTo(ptterminate),
ON_ZERO_TOLERANCE)) {
loop_complete = 1;
loopcount++;
}
Modified: brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp 2011-01-07
08:51:30 UTC (rev 42002)
+++ brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp 2011-01-07
08:52:59 UTC (rev 42003)
@@ -66,11 +66,11 @@
for (int i = 0; i < allsegments.Count(); i++) {
pstart = (*b)->m_C3[i]->PointAtStart();
pend = (*b)->m_C3[i]->PointAtEnd();
- if (ON_NearZero(ptmatch.DistanceTo(pstart), ON_ZERO_TOLERANCE)
&& (curvearray[i] == -1)) {
+ if (NEAR_ZERO(ptmatch.DistanceTo(pstart), ON_ZERO_TOLERANCE) &&
(curvearray[i] == -1)) {
curvecount = i;
ptmatch = pend;
i = allsegments.Count();
- if (ON_NearZero(pend.DistanceTo(ptterminate),
ON_ZERO_TOLERANCE)) {
+ if (NEAR_ZERO(pend.DistanceTo(ptterminate),
ON_ZERO_TOLERANCE)) {
loop_complete = 1;
loopcount++;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits