diff --git a/vcg/math/spherical_harmonics.h b/vcg/math/spherical_harmonics.h index e9211c80..4251dec1 100644 --- a/vcg/math/spherical_harmonics.h +++ b/vcg/math/spherical_harmonics.h @@ -167,6 +167,13 @@ public : return sph; } + static SphericalHarmonics Wrap(ScalarType * _coefficients) + { + SphericalHarmonics sph; + for(i = 0; i < (int) MAX_BAND * MAX_BAND; ++i) sph.coefficients[i] = _coefficients[i]; + return sph; + } + ScalarType operator()(ScalarType theta, ScalarType phi) { ScalarType f = 0;