Revision: 55706
http://sourceforge.net/p/brlcad/code/55706
Author: brlcad
Date: 2013-06-10 22:42:11 +0000 (Mon, 10 Jun 2013)
Log Message:
-----------
key off any negative tolerance value for weight/volume, not just the specific
value we initialized with
Modified Paths:
--------------
brlcad/trunk/src/libged/gqa.c
Modified: brlcad/trunk/src/libged/gqa.c
===================================================================
--- brlcad/trunk/src/libged/gqa.c 2013-06-10 20:49:48 UTC (rev 55705)
+++ brlcad/trunk/src/libged/gqa.c 2013-06-10 22:42:11 UTC (rev 55706)
@@ -1621,7 +1621,8 @@
/* if the vol/weight tolerances are not set, pick something */
if (analysis_flags & ANALYSIS_VOLUME) {
char *name = "volume.pl";
- if (EQUAL(volume_tolerance, -1)) {
+ if (volume_tolerance < 0.0) {
+ /* using 1/1000th the volume as a default tolerance, no particular
reason */
volume_tolerance = span[X] * span[Y] * span[Z] * 0.001;
bu_log("Using estimated volume tolerance %g %s\n",
volume_tolerance / units[VOL]->val, units[VOL]->name);
@@ -1634,7 +1635,7 @@
}
}
if (analysis_flags & ANALYSIS_WEIGHT) {
- if (EQUAL(weight_tolerance, -1)) {
+ if (weight_tolerance < 0.0) {
double max_den = 0.0;
int i;
for (i = 0; i < num_densities; i++) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits