Changeset 2739 for GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.h
- Timestamp:
- 06/05/08 02:49:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.h
r2738 r2739 121 121 122 122 protected: 123 #if 0 124 struct PendingRay 125 { 126 PendingRay(VssRay *ray, const bool d) 127 : mRay(ray), mFoundDiscontinuity(d) 128 {} 129 130 VssRay *mRay; 131 bool mFoundDiscontinuity; 132 }; 133 134 typedef stack<PendingRay> PendingQueue; 135 #endif 123 136 124 typedef stack<VssRay *> RayQueue; 137 125 … … 140 128 by the queue and continues as long it finds new visible geometry 141 129 (i.e., the queue is not empty). 142 143 130 @returns the number of samples cast. 144 131 */ 145 132 int ProcessQueue(); 146 147 133 /** Generates the rays starting the adaptive visibility sampling process. 148 134 */ 149 135 int CastInitialSamples(int numSamples); 150 151 136 /** Uses the information gained from the ray for doing adaptive border sampling. 152 137 This function tries to find the border of the triangle found visible by the … … 163 148 */ 164 149 int AdaptiveBorderSampling(const VssRay ¤tRay); 150 165 151 int AdaptiveBorderSamplingOpt(const VssRay ¤tRay); 166 152 /** The reverse sampling step. It is started once the cast … … 179 165 const Triangle3 &hitTriangle, 180 166 const VssRay &oldRay); 167 /** Returns true if we sampled a closer triangle than with the previous ray. 168 Does reverse sampling if gap found. 169 */ 170 int CheckDiscontinuity2(const VssRay ¤tRay, 171 const Triangle3 &hitTriangle, 172 const VssRay &oldRay); 181 173 /** Adds new samples to the ray queue and classifies them 182 174 with respect to the previous ray. … … 300 292 301 293 void PrepareProbablyVisibleSampling(); 294 295 void CreateRandomizedReverseRays(const Vector3 &origin, 296 const Vector3 &termination, 297 const Triangle3 &triangle, 298 SimpleRayContainer &rays, 299 int number); 300 301 bool CreateRandomizedReverseRay(const Vector3 &origin, 302 const Vector3 &termination, 303 const Triangle3 &triangle, 304 SimpleRay &ray); 305 306 inline bool IntersectViewCell(Vector3 &origin, Vector3 &dir) const; 302 307 303 308
Note: See TracChangeset
for help on using the changeset viewer.