Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorNils Thuerey <nils@thuerey.de>2006-11-05 20:28:23 +0300
committerNils Thuerey <nils@thuerey.de>2006-11-05 20:28:23 +0300
commitc8411cfeab4024d88a3a5e9ae260cd0e3daef71e (patch)
tree9edd21b0b5d865d011b3b267f451414427576af6 /intern
parent3bea663ffa27cab0a60b3ed1ac41d431ce55cecc (diff)
- a minor fix for solaris (problems with round&pow)
Diffstat (limited to 'intern')
-rw-r--r--intern/elbeem/intern/isosurface.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/intern/elbeem/intern/isosurface.cpp b/intern/elbeem/intern/isosurface.cpp
index fdef04dc5c6..223435bc75a 100644
--- a/intern/elbeem/intern/isosurface.cpp
+++ b/intern/elbeem/intern/isosurface.cpp
@@ -18,6 +18,10 @@
#include <ieeefp.h>
#endif
+// just use default rounding for platforms where its not available
+#ifndef round
+#define round(x) (x)
+#endif
/******************************************************************************
* Constructor
@@ -124,9 +128,6 @@ IsoSurface::~IsoSurface( void )
-//static inline getSubdivData(IsoSurface* iso,int ai,aj,ak, si,sj) {
- //int srci =
-//}
/******************************************************************************
@@ -634,7 +635,7 @@ void IsoSurface::triangulate( void )
float smoSubdfac = 1.;
if(mSubdivs>0) {
//smoSubdfac = 1./(float)(mSubdivs);
- smoSubdfac = powf(0.55,(float)mSubdivs); // slightly stronger
+ smoSubdfac = pow(0.55,(float)mSubdivs); // slightly stronger
}
if(mSmoothSurface>0. || mSmoothNormals>0.) debMsgStd("IsoSurface::triangulate",DM_MSG,"Smoothing...",10);
if(mSmoothSurface>0.0) {