Revision: 51721
http://brlcad.svn.sourceforge.net/brlcad/?rev=51721&view=rev
Author: crdueck
Date: 2012-07-30 19:22:34 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
minor changes, use HREVERSE instead of HSCALE to reverse a plane
Modified Paths:
--------------
brlcad/trunk/src/libged/analyze.c
Modified: brlcad/trunk/src/libged/analyze.c
===================================================================
--- brlcad/trunk/src/libged/analyze.c 2012-07-30 18:19:18 UTC (rev 51720)
+++ brlcad/trunk/src/libged/analyze.c 2012-07-30 19:22:34 UTC (rev 51721)
@@ -784,7 +784,7 @@
VSUB2(v1, face->pts[2], face->pts[0]);
VSUB2(v2, face->pts[3], face->pts[1]);
VCROSS(tmp, v2, v1);
- face->area = fabs(VDOT(face->plane_eqn, tmp)) / 2.0;
+ face->area = fabs(VDOT(face->plane_eqn, tmp)) * 0.5;
break;
default:
/* N-Sided Face - Sort points, and compute area using Green's Theorem
*/
@@ -795,7 +795,7 @@
VCROSS(tmp, face->pts[i], face->pts[i + 1 == face->npts ? 0 : i +
1]);
VADD2(sum, sum, tmp);
}
- face->area = fabs(VDOT(face->plane_eqn, sum)) / 2.0;
+ face->area = fabs(VDOT(face->plane_eqn, sum)) * 0.5;
break;
}
@@ -905,7 +905,7 @@
* This corrects the output rotation, fallback angles so that
* they always give the outward pointing normal vector. */
if (DIST_PT_PLANE(center_pt, face.plane_eqn) > 0.0) {
- HSCALE(face.plane_eqn, face.plane_eqn, -1.0);
+ HREVERSE(face.plane_eqn, face.plane_eqn);
}
sprintf(face.label, "%d", prface[type][i]);
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