Revision: 56031
http://sourceforge.net/p/brlcad/code/56031
Author: brlcad
Date: 2013-07-13 02:58:17 +0000 (Sat, 13 Jul 2013)
Log Message:
-----------
rename generic vhead() to something more descriptive, less shady. remove
unhelpful comments. ws: spaces to tabs.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp
Modified: brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2013-07-13
02:53:27 UTC (rev 56030)
+++ brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2013-07-13
02:58:17 UTC (rev 56031)
@@ -1538,7 +1538,7 @@
static void
-vhead(struct bn_vlblock *vbp, int ucount, int vcount, ON_NurbsSurface * ns)
+plot_nurbs_cv(struct bn_vlblock *vbp, int ucount, int vcount, ON_NurbsSurface
*ns)
{
register struct bu_list *vhead;
vhead = rt_vlblock_find(vbp, PEACH);
@@ -1546,32 +1546,31 @@
fastf_t pt1[3], pt2[3];
int i, j, k, temp;
for (k = 0; k < 2; k++) {
- /*< two times i loop */
- for (i = 0; i < ucount; ++i) {
- /*< k=0, i<ucount; k=1, i<vcount */
- if (k == 1)
- ns->GetCV(0, i, cp); /*< i < ucount */
- else
- ns->GetCV(i, 0, cp); /*< i < vcount */
+ /*< two times i loop */
- VMOVE(pt1, cp);
- for (j = 0; j < vcount; ++j) {
- /*< k=0, j<vcount; k=1, j<ucount */
- if (k == 1)
+ for (i = 0; i < ucount; ++i) {
+ if (k == 1)
+ ns->GetCV(0, i, cp); /*< i < ucount */
+ else
+ ns->GetCV(i, 0, cp); /*< i < vcount */
+
+ VMOVE(pt1, cp);
+ for (j = 0; j < vcount; ++j) {
+ if (k == 1)
ns->GetCV(j, i, cp);
else
- ns->GetCV(i, j, cp);
+ ns->GetCV(i, j, cp);
- VMOVE(pt2, cp);
- RT_ADD_VLIST(vhead, pt1, BN_VLIST_LINE_MOVE);
- RT_ADD_VLIST(vhead, pt2, BN_VLIST_LINE_DRAW);
- VMOVE(pt1, cp);
- RT_ADD_VLIST(vhead, cp, BN_VLIST_POINT_DRAW);
- }
- }
- temp = ucount; /*< swapping ucount and vcount */
- ucount = vcount;
- vcount = temp;
+ VMOVE(pt2, cp);
+ RT_ADD_VLIST(vhead, pt1, BN_VLIST_LINE_MOVE);
+ RT_ADD_VLIST(vhead, pt2, BN_VLIST_LINE_DRAW);
+ VMOVE(pt1, cp);
+ RT_ADD_VLIST(vhead, cp, BN_VLIST_POINT_DRAW);
+ }
+ }
+ temp = ucount;
+ ucount = vcount;
+ vcount = temp;
}
}
@@ -1629,7 +1628,7 @@
ucount = ns->m_cv_count[0];
vcount = ns->m_cv_count[1];
surf->Dump(tl);
- vhead(vbp, ucount, vcount, ns); /* calling common function
vhead */
+ plot_nurbs_cv(vbp, ucount, vcount, ns);
}
} else if (index < brep->m_S.Count()) {
ON_Surface *surf = brep->m_S[index];
@@ -1638,7 +1637,7 @@
int ucount, vcount;
ucount = ns->m_cv_count[0];
vcount = ns->m_cv_count[1];
- vhead(vbp, ucount, vcount, ns); /* calling common function vhead */
+ plot_nurbs_cv(vbp, ucount, vcount, ns);
}
bu_vls_printf(vls, ON_String(wstr).Array());
return 0;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits