- Timestamp:
- 03/09/06 04:58:41 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp
r683 r684 3028 3028 // only put into back container (split should have no effect ...) 3029 3029 case Polygon3::COINCIDENT: 3030 Debug << "error should not come here" << endl;3030 //Debug << "error should not come here" << endl; 3031 3031 splitsGeom = false; 3032 3032 … … 3054 3054 Polygon3 *reversePoly = planePoly->CreateReversePolygon(); 3055 3055 front.Add(reversePoly, reversePlane); 3056 Debug << "poly normal : " << reversePoly->GetSupportingPlane().mNormal << " split plane normal " << reversePlane.mNormal << endl;3057 } 3058 else Debug << "err" << endl;3056 //Debug << "poly normal : " << reversePoly->GetSupportingPlane().mNormal << " split plane normal " << reversePlane.mNormal << endl; 3057 } 3058 3059 3059 3060 3060 return splitsGeom; … … 3067 3067 if (!planePoly->Valid(epsilon)) 3068 3068 { 3069 Debug << "not valid!!" << endl;3069 //Debug << "not valid!!" << endl; 3070 3070 DEL_PTR(planePoly); 3071 3071 } … … 3075 3075 //Plane3 plane = mPolys[i]->GetSupportingPlane(); 3076 3076 Plane3 plane = mPlanes[i]; 3077 3078 Debug << "*******************" << endl;3079 Debug << "support: " << mPolys[i]->GetSupportingPlane() << endl;3080 Debug << "plane: " << mPlanes[i] << endl;3081 3077 3082 3078 /// don't use epsilon here to get exact split planes -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r683 r684 3488 3488 const int cf = Polygon3::ClassifyPlane(geom.GetPolys(), *clipPlane, 0.00000001f); 3489 3489 3490 /*if (cf == Polygon3::BACK_SIDE)3490 if (cf == Polygon3::BACK_SIDE) 3491 3491 { 3492 3492 exporter->ExportPolygons(geom.GetPolys()); 3493 3493 } 3494 3494 else if (cf == Polygon3::SPLIT) 3495 { */3495 { 3496 3496 geom.SplitGeometry(front, 3497 3497 back, … … 3500 3500 0.00000001f); 3501 3501 3502 Debug << "here geo size: " << geom.Size() << endl;3503 Debug << "here size b: " << back.Size() << " f: " << front.Size() << endl;3502 //Debug << "here geo size: " << geom.Size() << endl; 3503 //Debug << "here size b: " << back.Size() << " f: " << front.Size() << endl; 3504 3504 if (back.Valid()) 3505 3505 { 3506 Debug << "here3 size: " << back.Size() << endl;3507 3506 exporter->ExportPolygons(back.GetPolys()); 3508 3507 } 3509 else 3510 Debug << "here2 size: " << back.Size() << endl; 3511 //} 3508 //else Debug << "here2 size: " << back.Size() << endl; 3509 } 3512 3510 } 3513 3511 }
Note: See TracChangeset
for help on using the changeset viewer.