Revision: 55942
          http://sourceforge.net/p/brlcad/code/55942
Author:   phoenixyjll
Date:     2013-07-03 04:45:26 +0000 (Wed, 03 Jul 2013)
Log Message:
-----------
Add another test for curve-surface intersection (a line and a torus).

Modified Paths:
--------------
    brlcad/trunk/src/libbrep/test_curve_intersect.cpp

Modified: brlcad/trunk/src/libbrep/test_curve_intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/test_curve_intersect.cpp   2013-07-03 04:43:06 UTC 
(rev 55941)
+++ brlcad/trunk/src/libbrep/test_curve_intersect.cpp   2013-07-03 04:45:26 UTC 
(rev 55942)
@@ -183,6 +183,14 @@
     ON_PolylineCurve polyC(ptarrayC);
     test_csi(&polyC, &planesurf);
 
+    bu_log("Test 3:\n");
+    // A line and a torus
+    ON_Torus torus(circleA, radius*0.5);
+    ON_LineCurve ray(ON_3dPoint(-20.0, -2.0, -1.0), ON_3dPoint(20.0, 2.0, 
1.0));
+    ON_NurbsSurface* torus_surface = ON_NurbsSurface::New();
+    torus.GetNurbForm(*torus_surface);
+    test_csi(&ray, torus_surface);
+
     bu_log("All finished.\n");
     return 0;
 }

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

Reply via email to