OSX build fixes
parent
bd195d13da
commit
a98a1928ff
|
@ -267,7 +267,7 @@ protected:
|
|||
const boost::function<Float (const Vector &)> &pdfFn,
|
||||
size_t nPts, const Float *in, Float *out) {
|
||||
#pragma omp parallel for
|
||||
for (size_t i=0; i<nPts; ++i)
|
||||
for (int i=0; i<(int) nPts; ++i)
|
||||
out[i] = pdfFn(sphericalDirection(in[2*i], in[2*i+1])) * std::sin(in[2*i]);
|
||||
}
|
||||
private:
|
||||
|
|
|
@ -191,7 +191,7 @@ public:
|
|||
inline GaussianFiberDistribution() {}
|
||||
|
||||
inline GaussianFiberDistribution(Float stddev) : m_stddev(stddev) {
|
||||
m_normalization = 1/(std::pow(2*M_PI, 3.0f/2.0f) * m_stddev *
|
||||
m_normalization = 1/(std::pow(2*M_PI, (Float) 3 / (Float) 2) * m_stddev *
|
||||
mts_erf(1/(SQRT_TWO * m_stddev)));
|
||||
m_c1 = 1.0f/mts_erf(1/(SQRT_TWO * m_stddev));
|
||||
|
||||
|
|
Loading…
Reference in New Issue