Revision: 52493
http://brlcad.svn.sourceforge.net/brlcad/?rev=52493&view=rev
Author: starseeker
Date: 2012-09-18 15:46:16 +0000 (Tue, 18 Sep 2012)
Log Message:
-----------
minor tweaks to plotting code.
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-18 15:22:24 UTC (rev
52492)
+++ brlcad/trunk/src/librt/test_botpatches.cpp 2012-09-18 15:46:16 UTC (rev
52493)
@@ -139,18 +139,7 @@
return area;
}
-void plot_face(point_t p1, point_t p2, point_t p3, int r, int g, int b, FILE
*c_plot)
-{
- pl_color(c_plot, r, g, b);
- pdv_3move(c_plot, p1);
- pdv_3cont(c_plot, p2);
- pdv_3move(c_plot, p1);
- pdv_3cont(c_plot, p3);
- pdv_3move(c_plot, p2);
- pdv_3cont(c_plot, p3);
-}
-
// Use SVD algorithm from Soderkvist to fit a plane to vertex points
// http://www.math.ltu.se/~jove/courses/mam208/svd.pdf
void fit_plane(std::set<size_t> *faces, struct Manifold_Info *info, ON_Plane
*plane) {
@@ -205,7 +194,12 @@
VSUB2(p1, p1, pc);
VSUB2(p2, p2, pc);
VSUB2(p3, p3, pc);
- plot_face(p1, p2, p3, r, g ,b, plot_file);
+ pdv_3move(plot_file, p1);
+ pdv_3cont(plot_file, p2);
+ pdv_3move(plot_file, p1);
+ pdv_3cont(plot_file, p3);
+ pdv_3move(plot_file, p2);
+ pdv_3cont(plot_file, p3);
}
pl_color(plot_file, 255, 255, 255);
point_t pn;
@@ -252,6 +246,16 @@
}
}
+void plot_face(point_t p1, point_t p2, point_t p3, int r, int g, int b, FILE
*c_plot)
+{
+ pl_color(c_plot, r, g, b);
+ pdv_3move(c_plot, p1);
+ pdv_3cont(c_plot, p2);
+ pdv_3move(c_plot, p1);
+ pdv_3cont(c_plot, p3);
+ pdv_3move(c_plot, p2);
+ pdv_3cont(c_plot, p3);
+}
void plot_faces(std::map< size_t, std::set<size_t> > *patches, struct
Manifold_Info *info, const char *filename)
{
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