[brlcad-commits] SF.net SVN: brlcad:[38115] brlcad/trunk/src/librt/primitives/nmg/nmg_tri_mc .c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <eri...@us...> - 2010-03-22 18:06:41
|
Revision: 38115 http://brlcad.svn.sourceforge.net/brlcad/?rev=38115&view=rev Author: erikgreenwald Date: 2010-03-22 18:06:35 +0000 (Mon, 22 Mar 2010) Log Message: ----------- remove unused normal information Modified Paths: -------------- brlcad/trunk/src/librt/primitives/nmg/nmg_tri_mc.c Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_tri_mc.c =================================================================== --- brlcad/trunk/src/librt/primitives/nmg/nmg_tri_mc.c 2010-03-22 18:05:40 UTC (rev 38114) +++ brlcad/trunk/src/librt/primitives/nmg/nmg_tri_mc.c 2010-03-22 18:06:35 UTC (rev 38115) @@ -428,7 +428,6 @@ #define NOHIT -1 struct whack { point_t hit; - vect_t norm; fastf_t dist; int in; /* 1 for inhit, 2 for outhit, -1 to terminate */ }; @@ -442,8 +441,7 @@ s=s; -#define MEH(dir,code) RT_HIT_NORM(pp->pt_##dir##hit,pp->pt_##dir##seg->seg_stp,a->a_ray); VJOIN1(t->hit,a->a_ray.r_pt,pp->pt_##dir##hit->hit_dist,a->a_ray.r_dir); VMOVE(t->norm,pp->pt_##dir##hit->hit_normal); t->dist=pp->pt_##dir##hit->hit_dist; t->in=code; t++; - +#define MEH(dir,code) VJOIN1(t->hit,a->a_ray.r_pt,pp->pt_##dir##hit->hit_dist,a->a_ray.r_dir); t->dist=pp->pt_##dir##hit->hit_dist; t->in=code; t++; for (pp = PartHeadp->pt_forw; pp != PartHeadp; pp = pp->pt_forw) { MEH(in,INHIT); MEH(out,OUTHIT); @@ -451,7 +449,6 @@ if(intersects >= MAX_INTERSECTS) bu_bomb("Too many intersects in marching cubes"); } - #undef MEH t->in = NOHIT; return 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |