- Timestamp:
- 07/10/06 19:21:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp
r1004 r1112 87 87 } 88 88 89 // void90 // SamplingPreprocessor::AvsGenerateRandomRay(Ray &ray)91 // {92 // int objId = RandomValue(0, mObjects.size());93 // Intersectable *object = objects[objId];94 // object->GetRandomSurfacePoint(point, normal);95 // direction = UniformRandomVector(normal);96 // SetupRay(ray, point, direction);97 // }98 99 // void100 // SamplingPreprocessor::AvsHandleRay(Ray &ray)101 // {102 // int sampleContributions = 0;103 104 // mKdTree->CastRay(ray);105 106 // if (ray.leaves.size()) {107 // sampleContributions += AddNodeSamples(object, ray, pass);108 109 // if (ray.intersections.size()) {110 // sampleContributions += AddNodeSamples(ray.intersections[0].mObject, ray, pass);111 // }112 // }113 // }114 115 // void116 // SamplingPreprocessor::AvsBorderSampling(Ray &ray)117 // {118 119 120 // }121 122 // void123 // SamplingPreprocessor::AvsPass()124 // {125 // Ray ray;126 // while (1) {127 // AvsGenerateRay(ray);128 // HandleRay(ray);129 // while ( !mRayQueue.empty() ) {130 // Ray ray = mRayQueue.pop();131 // mRayQueue.pop();132 // AdaptiveBorderSampling(ray);133 // }134 // }135 136 137 138 // }139 89 140 90
Note: See TracChangeset
for help on using the changeset viewer.