Changeset 1961


Ignore:
Timestamp:
01/10/07 03:00:27 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1960 r1961  
    2929GlobalLinesRenderer *globalLinesRenderer = NULL; 
    3030 
    31 static int texWidth = 128; 
    32 static int texHeight = 128; 
     31static int texWidth = 256; 
     32static int texHeight = 256; 
    3333 
    3434static bool isDepth = true; 
     
    569569        const Vector3 norm = intersect->GetNormal(0);  
    570570 
    571         //if (DotProd(dir, norm) >= -Limits::Small)  
    572                 return intersect; 
     571        // test for invalid view space 
     572        if (DotProd(dir, norm) >= -Limits::Small)  
     573                return NULL; 
     574 
     575        return intersect; 
    573576} 
    574577 
     
    627630                        } 
    628631 
    629                         //if (termObj2) 
    630                         //{ 
    631                         //      vssRays.push_back(new VssRay(oldPt, newPt, NULL, termObj2)); 
    632                         //      cout << "old pt: " << oldPt << endl; 
    633                         //} 
     632                        if (termObj2) 
     633                        { 
     634                                vssRays.push_back(new VssRay(newPt, oldPt, NULL, termObj2)); 
     635                                //cout << "old pt: " << oldPt << endl; 
     636                        } 
    634637                } 
    635638        } 
     
    674677                Intersectable *obj = (*vit)->mTerminationObject;         
    675678                exporter->ExportIntersectable(obj); 
    676                  
    677                 unsigned char r, g, b; 
    678                 SetupFalseColor(obj->GetId(), r, g, b); 
    679                 int id = mRenderer->GetId(r, g, b); 
    680  
    681                 if (id != obj->GetId()) 
    682                         cout << "error!" << endl; 
    683                 else cout <<"x"; 
    684679        }        
    685680 
    686         exporter->ExportRays(vssRays); 
     681//      exporter->ExportRays(vssRays); 
    687682 
    688683        delete exporter; 
Note: See TracChangeset for help on using the changeset viewer.