Revision: 65512
          http://sourceforge.net/p/brlcad/code/65512
Author:   ejno
Date:     2015-07-01 18:52:35 +0000 (Wed, 01 Jul 2015)
Log Message:
-----------
fix check of parameters

Modified Paths:
--------------
    brlcad/trunk/src/libged/bot_decimate.c

Modified: brlcad/trunk/src/libged/bot_decimate.c
===================================================================
--- brlcad/trunk/src/libged/bot_decimate.c      2015-07-01 18:43:25 UTC (rev 
65511)
+++ brlcad/trunk/src/libged/bot_decimate.c      2015-07-01 18:52:35 UTC (rev 
65512)
@@ -123,7 +123,7 @@
        }
     }
 
-    if (feature_size > 0.0 && (max_chord_error > 0.0 || max_normal_error > 0.0 
||  min_edge_length > 0.0)) {
+    if (feature_size >= 0.0 && (max_chord_error >= 0.0 || max_normal_error >= 
0.0 ||  min_edge_length >= 0.0)) {
        bu_vls_printf(gedp->ged_result_str, "-f may not be used with -c, -n, or 
-e");
        return GED_ERROR;
     }
@@ -161,7 +161,7 @@
        min_edge_length = min_edge_length * 
gedp->ged_wdbp->dbip->dbi_local2base;
     }
 
-    if (feature_size > 0.0) {
+    if (feature_size >= 0.0) {
        /* use the new GCT decimator */
        const size_t orig_num_faces = bot->num_faces;
        size_t edges_removed;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to