From 29e713acf41c60c3214b79e48b7301fee052a801 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 16 Aug 2010 16:06:42 +0200 Subject: [PATCH] removed unused Li feature from Subsurface --- include/mitsuba/render/subsurface.h | 9 +-------- src/subsurface/dipole.cpp | 10 ---------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/include/mitsuba/render/subsurface.h b/include/mitsuba/render/subsurface.h index e65fd54e..c5483468 100644 --- a/include/mitsuba/render/subsurface.h +++ b/include/mitsuba/render/subsurface.h @@ -28,14 +28,7 @@ public: inline const std::vector getShapes() const { return m_shapes; } /// Get the exitant radiance for a point on the surface - virtual Spectrum Lo(const Intersection &its, - const Vector &d) const = 0; - - /** - * Query the the readiance function inside the object. Requires a surface - * normal used to create a slab approximation - */ - virtual Spectrum Li(const Ray &ray, const Normal &n) const = 0; + virtual Spectrum Lo(const Intersection &its, const Vector &d) const = 0; /// Serialize this subsurface integrator to a binary data stream void serialize(Stream *stream, InstanceManager *manager) const; diff --git a/src/subsurface/dipole.cpp b/src/subsurface/dipole.cpp index 30cd4024..0947defd 100644 --- a/src/subsurface/dipole.cpp +++ b/src/subsurface/dipole.cpp @@ -231,16 +231,6 @@ public: } } - Spectrum Li(const Ray &ray, const Normal &n) const { - if (!m_ready) - return Spectrum(0.0f); - RadianceQuery rQuery(m_zr, m_zv, m_sigmaTr, m_mfp, m_D, m_Fdt, ray.o, n); - m_octree->execute(rQuery); - Spectrum R2 = rQuery.diff(-ray.d) * INV_PI; - Spectrum R = rQuery.getRadiance(-ray.d); - return R2; - } - void configure() { m_sigmaSPrime = m_sigmaS * (1-m_g); m_sigmaTPrime = m_sigmaSPrime + m_sigmaA;