Revision: 42165
http://brlcad.svn.sourceforge.net/brlcad/?rev=42165&view=rev
Author: brlcad
Date: 2011-01-12 19:37:19 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
didn't starseeker already fix this? M_PI is the new coke.
Modified Paths:
--------------
brlcad/trunk/src/conv/iges/revolve.c
Modified: brlcad/trunk/src/conv/iges/revolve.c
===================================================================
--- brlcad/trunk/src/conv/iges/revolve.c 2011-01-12 19:15:57 UTC (rev
42164)
+++ brlcad/trunk/src/conv/iges/revolve.c 2011-01-12 19:37:19 UTC (rev
42165)
@@ -315,14 +315,14 @@
VUNITIZE(pdir);
if (fract < 0.5) {
- theta = 2.0*PI*fract;
+ theta = 2.0*M_PI*fract;
cutop = Intersect;
} else if (fract > 0.5) {
- theta = (-2.0*PI*(1.0-fract));
+ theta = (-2.0*M_PI*(1.0-fract));
cutop = Subtract;
} else {
/* FIXME: fract == 0.5, a dangerous comparison (roundoff) */
- theta = PI;
+ theta = M_PI;
cutop = Intersect;
/* Construct vertices for cutting solid */
VJOIN2(pts[0], pt, hmin, adir, rmax, startdir);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits