Changeset 293
- Timestamp:
- 09/20/05 01:51:32 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp
r291 r293 147 147 { 148 148 // Decide if plane and surface normal are same 149 if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0 )149 if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0.99) 150 150 return COINCIDENT; // plane and polygon are coincident 151 151 else … … 164 164 165 165 // Decide if plane and surface normal are same 166 if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0)166 if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > float(1.0 - 1.0e-5)) 167 167 return COINCIDENT; // plane and polygon are coincident 168 168 else -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r292 r293 160 160 //Debug << "New polygon with plane: " << poly->GetSupportingPlane() << "\n"; 161 161 162 // test if split is neccessary162 // get polygon classification 163 163 int classification = poly->ClassifyPlane(mPlane); 164 164 … … 631 631 Debug << "WARNING: size " << (int)coincident.size() << " at depth " << tData.mDepth << ", #back polys: " << (int)backPolys->size() << ", #front polys: " << (int)frontPolys->size() << endl; 632 632 for (int i=0; i<coincident.size(); ++i) 633 Debug << "coincident poly " << i << ", vc: " << coincident[i]->mParent << "\n" << *coincident[i] << endl; 633 Debug << "coincident poly " << i << ", vc: " << coincident[i]->mParent << "\n" << *coincident[i] << 634 "dotprod: " << DotProd(coincident[i]->GetSupportingPlane().mNormal, interior->GetPlane()->mNormal) << endl; 634 635 } 635 636 //Debug << "coincident size: " << coincident.size() << endl;
Note: See TracChangeset
for help on using the changeset viewer.