Revision: 52502
          http://brlcad.svn.sourceforge.net/brlcad/?rev=52502&view=rev
Author:   starseeker
Date:     2012-09-19 00:12:26 +0000 (Wed, 19 Sep 2012)
Log Message:
-----------
Use interpolateLocalCubicCurve for the patch edge fitting.

Modified Paths:
--------------
    brlcad/trunk/src/librt/test_botpatches.cpp

Modified: brlcad/trunk/src/librt/test_botpatches.cpp
===================================================================
--- brlcad/trunk/src/librt/test_botpatches.cpp  2012-09-19 00:01:19 UTC (rev 
52501)
+++ brlcad/trunk/src/librt/test_botpatches.cpp  2012-09-19 00:12:26 UTC (rev 
52502)
@@ -948,20 +948,8 @@
                 // overlapping triangles test.
                for (v_it = polycurves[curve_id].begin(); v_it != 
polycurves[curve_id].end(); v_it++) {
                    
curve_pnts.Append(ON_3dPoint(&info->bot->vertices[(*v_it)]));
-/*                    if (v_it + 1 != polycurves[curve_id].end()) {
-                       point_t p1, p2, p3;
-                       VMOVE(p1, &info->bot->vertices[(*v_it)]);
-                      VMOVE(p2, &info->bot->vertices[(*(v_it+1))]);
-                      p3[0] = (p1[0] + p2[0])/2;
-                      p3[1] = (p1[1] + p2[1])/2;
-                      p3[2] = (p1[2] + p2[2])/2;
-                       curve_pnts.Append(ON_3dPoint(p3));
-                    }*/
                }
-               ON_BezierCurve curve_bez((const ON_3dPointArray)curve_pnts);
-               ON_NurbsCurve *curve_nurb = ON_NurbsCurve::New();
-               curve_bez.GetNurbForm(*curve_nurb);
-               curve_nurb->SetDomain(0.0, 1.0);
+               ON_NurbsCurve *curve_nurb =  
interpolateLocalCubicCurve(curve_pnts);
                int c3i = info->brep->AddEdgeCurve(curve_nurb);
                ON_BrepVertex& StartV = info->brep->m_V[vs_id];
                ON_BrepVertex& EndV= info->brep->m_V[ve_id];

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to