Revision: 42152
http://brlcad.svn.sourceforge.net/brlcad/?rev=42152&view=rev
Author: starseeker
Date: 2011-01-12 18:06:41 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
PI is coming up as undefined on OSX - use M_PI
Modified Paths:
--------------
brlcad/branches/cmake/src/conv/iges/revolve.c
Modified: brlcad/branches/cmake/src/conv/iges/revolve.c
===================================================================
--- brlcad/branches/cmake/src/conv/iges/revolve.c 2011-01-12 17:40:06 UTC
(rev 42151)
+++ brlcad/branches/cmake/src/conv/iges/revolve.c 2011-01-12 18:06:41 UTC
(rev 42152)
@@ -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