Revision: 75689
http://sourceforge.net/p/brlcad/code/75689
Author: starseeker
Date: 2020-05-05 13:13:32 +0000 (Tue, 05 May 2020)
Log Message:
-----------
Fix indexing offset. Still have twisted arbs, but looking better.
Modified Paths:
--------------
brlcad/trunk/src/libged/bot/arb6.cpp
Modified: brlcad/trunk/src/libged/bot/arb6.cpp
===================================================================
--- brlcad/trunk/src/libged/bot/arb6.cpp 2020-05-04 17:36:44 UTC (rev
75688)
+++ brlcad/trunk/src/libged/bot/arb6.cpp 2020-05-05 13:13:32 UTC (rev
75689)
@@ -150,6 +150,7 @@
vect_t pv1[3], pv2[3];
for (int j = 0; j < 3; j++) {
VMOVE(pf[j], &bot->vertices[bot->faces[i*3+j]*3]);
+ bu_log("Face %zd point %d: %f %f %f\n", i, j, V3ARGS(pf[j]));
VSCALE(pv1[j], v2n[bot->faces[i*3+j]], bot->thickness[i]);
VSCALE(pv2[j], v2n[bot->faces[i*3+j]], -1*bot->thickness[i]);
}
@@ -162,11 +163,14 @@
}
for (int j = 3; j < 6; j++) {
point_t npnt;
- VADD2(npnt, pf[j], pv2[j]);
+ VADD2(npnt, pf[j-3], pv2[j-3]);
for (int k = 0; k < 3; k++) {
pnts[j*3+k] = npnt[k];
}
}
+ for (int j = 0; j < 6; j++) {
+ bu_log("%zd point %d: %f %f %f\n", i, j, pnts[j*3], pnts[j*3+1],
pnts[j*3+2]);
+ }
bu_vls_sprintf(&prim_name, "%s.arb6.%zd", gb->dp->d_namep, i);
mk_arb6(gb->gedp->ged_wdbp, bu_vls_cstr(&prim_name), pnts);
(void)mk_addmember(bu_vls_cstr(&prim_name), &(wcomb.l), NULL,
DB_OP_UNION);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits