diff options
author | Nils Thuerey <nils@thuerey.de> | 2006-11-05 20:28:23 +0300 |
---|---|---|
committer | Nils Thuerey <nils@thuerey.de> | 2006-11-05 20:28:23 +0300 |
commit | c8411cfeab4024d88a3a5e9ae260cd0e3daef71e (patch) | |
tree | 9edd21b0b5d865d011b3b267f451414427576af6 /intern/elbeem | |
parent | 3bea663ffa27cab0a60b3ed1ac41d431ce55cecc (diff) |
- a minor fix for solaris (problems with round&pow)
Diffstat (limited to 'intern/elbeem')
-rw-r--r-- | intern/elbeem/intern/isosurface.cpp | 9 |
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) { |