Revision: 48392
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48392&view=rev
Author:   indianlarry
Date:     2012-01-11 16:08:32 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Preprocessed out  "dead_code", eventually remove but offers alternative to 
curve fitting method used for pullback. Should quell coverity scan CID 1838

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/PullbackCurve.cpp

Modified: brlcad/trunk/src/conv/step/PullbackCurve.cpp
===================================================================
--- brlcad/trunk/src/conv/step/PullbackCurve.cpp        2012-01-11 16:04:09 UTC 
(rev 48391)
+++ brlcad/trunk/src/conv/step/PullbackCurve.cpp        2012-01-11 16:08:32 UTC 
(rev 48392)
@@ -653,11 +653,11 @@
 ON_Curve*
 interpolateCurve(ON_2dPointArray &samples)
 {
-    bool useBezier = false;
     if (samples.Count() == 2) {
        // build a line
        return new ON_LineCurve(samples[0], samples[1]);
-    } else if (useBezier == true) {
+#ifdef DEBUG_USE_BEZIER_CURVE_INTERPOLATION
+    } else
        ON_BezierCurve *bezier = new ON_BezierCurve(
            samples);
        ON_NurbsCurve nurbcurve;
@@ -675,6 +675,7 @@
        ON_NurbsCurve* nurbs = newNURBSCurve(spline);
 
        return nurbs;
+#else
     } else {
        ON_TextLog dump;
        ON_NurbsCurve* nurbs;
@@ -695,6 +696,7 @@
        }
        return nurbs;
     }
+#endif
 }
 
 

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to