Ignore:
Timestamp:
01/03/08 15:53:44 (16 years ago)
Author:
bittner
Message:

big merge: preparation for havran ray caster, check if everything works

File:
1 edited

Legend:

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

    r2572 r2575  
    55#include "ViewCellsManager.h" 
    66#include "SceneGraph.h" 
    7 #include "Viewcell.h" 
     7#include "ViewCell.h" 
    88#include "Beam.h" 
    99#include "KdTree.h" 
     
    126126void GlRenderer::RenderTriangle(TriangleIntersectable *object) 
    127127{ 
    128         Triangle3 &t = object->GetItem(); 
     128  Triangle3 *t = &(object->GetItem()); 
    129129 
    130130        glBegin(GL_TRIANGLES); 
    131         Vector3 normal = t.GetNormal(); 
     131        Vector3 normal = t->GetNormal(); 
    132132        glNormal3f(normal.x, normal.y, normal.z); 
    133         glVertex3f(t.mVertices[0].x, t.mVertices[0].y, t.mVertices[0].z); 
    134         glVertex3f(t.mVertices[1].x, t.mVertices[1].y, t.mVertices[1].z); 
    135         glVertex3f(t.mVertices[2].x, t.mVertices[2].y, t.mVertices[2].z); 
     133        glVertex3f(t->mVertices[0].x, t->mVertices[0].y, t->mVertices[0].z); 
     134        glVertex3f(t->mVertices[1].x, t->mVertices[1].y, t->mVertices[1].z); 
     135        glVertex3f(t->mVertices[2].x, t->mVertices[2].y, t->mVertices[2].z); 
    136136        glEnd(); 
    137137} 
     
    420420                if ((*oi)->Type() == Intersectable::TRIANGLE_INTERSECTABLE) { 
    421421                        TriangleIntersectable *object = (TriangleIntersectable *)*oi; 
    422                         Triangle3 &t = object->GetItem(); 
    423  
    424                         Vector3 normal = t.GetNormal(); 
     422                        Triangle3 *t = &(object->GetItem()); 
     423 
     424                        Vector3 normal = t->GetNormal(); 
    425425                        glNormal3f(normal.x, normal.y, normal.z); 
    426                         glVertex3f(t.mVertices[0].x, t.mVertices[0].y, t.mVertices[0].z); 
    427                         glVertex3f(t.mVertices[1].x, t.mVertices[1].y, t.mVertices[1].z); 
    428                         glVertex3f(t.mVertices[2].x, t.mVertices[2].y, t.mVertices[2].z); 
     426                        glVertex3f(t->mVertices[0].x, t->mVertices[0].y, t->mVertices[0].z); 
     427                        glVertex3f(t->mVertices[1].x, t->mVertices[1].y, t->mVertices[1].z); 
     428                        glVertex3f(t->mVertices[2].x, t->mVertices[2].y, t->mVertices[2].z); 
    429429 
    430430                } 
Note: See TracChangeset for help on using the changeset viewer.