Changeset 684


Ignore:
Timestamp:
03/09/06 04:58:41 (18 years ago)
Author:
mattausch
Message:

found bug when creating geometry

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp

    r683 r684  
    30283028                        // only put into back container (split should have no effect ...) 
    30293029                        case Polygon3::COINCIDENT: 
    3030                                 Debug << "error should not come here" << endl; 
     3030                                //Debug << "error should not come here" << endl; 
    30313031                                splitsGeom = false; 
    30323032 
     
    30543054                Polygon3 *reversePoly = planePoly->CreateReversePolygon(); 
    30553055                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         
    30593059 
    30603060        return splitsGeom; 
     
    30673067        if (!planePoly->Valid(epsilon)) 
    30683068        { 
    3069                 Debug << "not valid!!" << endl; 
     3069                //Debug << "not valid!!" << endl; 
    30703070                DEL_PTR(planePoly); 
    30713071        } 
     
    30753075                //Plane3 plane = mPolys[i]->GetSupportingPlane(); 
    30763076                Plane3 plane = mPlanes[i]; 
    3077  
    3078                 Debug << "*******************" << endl; 
    3079                 Debug << "support: " << mPolys[i]->GetSupportingPlane() << endl; 
    3080                 Debug << "plane: " << mPlanes[i] << endl; 
    30813077 
    30823078                /// don't use epsilon here to get exact split planes 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r683 r684  
    34883488                        const int cf = Polygon3::ClassifyPlane(geom.GetPolys(), *clipPlane, 0.00000001f); 
    34893489 
    3490                         /*if (cf == Polygon3::BACK_SIDE) 
     3490                        if (cf == Polygon3::BACK_SIDE) 
    34913491                        { 
    34923492                                exporter->ExportPolygons(geom.GetPolys()); 
    34933493                        } 
    34943494                        else if (cf == Polygon3::SPLIT) 
    3495                         {*/ 
     3495                        { 
    34963496                                geom.SplitGeometry(front, 
    34973497                                                                   back, 
     
    35003500                                                                   0.00000001f); 
    35013501         
    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; 
    35043504                                if (back.Valid()) 
    35053505                                { 
    3506                                         Debug << "here3 size: " << back.Size() << endl; 
    35073506                                        exporter->ExportPolygons(back.GetPolys()); 
    35083507                                } 
    3509                                 else 
    3510                                         Debug << "here2 size: " << back.Size() << endl; 
    3511                         //} 
     3508                                //else Debug << "here2 size: " << back.Size() << endl; 
     3509                        } 
    35123510                } 
    35133511        } 
Note: See TracChangeset for help on using the changeset viewer.