Public Member Functions | |
SurfacePointTask (const Scene *sc, const Point &org, float ti, int tn, float msd, int mf, RWMutex &m, int &rf, int &mrf, int &tpt, int &trt, int &npa, GeometricPrimitive &sph, Octree< SurfacePoint > &oct, vector< SurfacePoint > &sps, ProgressReporter &pr) | |
void | Run () |
Public Attributes | |
int | taskNum |
const Scene * | scene |
Point | origin |
float | time |
float | minSampleDist |
int | maxFails |
RWMutex & | mutex |
int & | repeatedFails |
int & | maxRepeatedFails |
int & | totalPathsTraced |
int & | totalRaysTraced |
int & | numPointsAdded |
GeometricPrimitive & | sphere |
Octree< SurfacePoint > & | octree |
vector< SurfacePoint > & | surfacePoints |
ProgressReporter & | prog |
Definition at line 40 of file surfacepoints.cpp.
SurfacePointTask::SurfacePointTask | ( | const Scene * | sc, | |
const Point & | org, | |||
float | ti, | |||
int | tn, | |||
float | msd, | |||
int | mf, | |||
RWMutex & | m, | |||
int & | rf, | |||
int & | mrf, | |||
int & | tpt, | |||
int & | trt, | |||
int & | npa, | |||
GeometricPrimitive & | sph, | |||
Octree< SurfacePoint > & | oct, | |||
vector< SurfacePoint > & | sps, | |||
ProgressReporter & | pr | |||
) | [inline] |
Definition at line 42 of file surfacepoints.cpp.
void SurfacePointTask::Run | ( | ) | [virtual] |
Implements Task.
Definition at line 154 of file surfacepoints.cpp.
References Octree< NodeData >::Add(), arena, Intersection::dg, Faceforward(), PoissonCheck::failed, MemoryArena::FreeAll(), Intersection::GetBSSRDF(), INFINITY, GeometricPrimitive::Intersect(), Scene::Intersect(), Octree< NodeData >::Lookup(), M_PI, maxFails, maxRepeatedFails, minSampleDist, mutex, DifferentialGeometry::nn, numPointsAdded, octree, origin, SurfacePoint::p, DifferentialGeometry::p, prog, RNG::RandomFloat(), Intersection::rayEpsilon, READ, repeatedFails, rng, scene, sphere, surfacePoints, taskNum, time, totalPathsTraced, totalRaysTraced, UniformSampleSphere(), ProgressReporter::Update(), RWMutexLock::UpgradeToWrite(), and Warning().
Definition at line 59 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 62 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 58 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 61 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 63 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 65 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 56 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 67 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 62 of file surfacepoints.cpp.
Referenced by Run().
const Scene* SurfacePointTask::scene |
Definition at line 55 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 64 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 66 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 54 of file surfacepoints.cpp.
Referenced by Run().
float SurfacePointTask::time |
Definition at line 57 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 63 of file surfacepoints.cpp.
Referenced by Run().
Definition at line 63 of file surfacepoints.cpp.
Referenced by Run().