diff --git a/Graphics/Mesh.cpp b/Graphics/Mesh.cpp index dbd3f25f861ecf0f30c10d44158e1ffa6c41690d..5cbfb64500511f4bb544dbb1a74ba63656716fb1 100644 --- a/Graphics/Mesh.cpp +++ b/Graphics/Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: Mesh.cpp,v 1.95 2004-05-31 18:36:20 geuzaine Exp $ +// $Id: Mesh.cpp,v 1.96 2004-06-01 16:49:01 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -249,13 +249,19 @@ void Draw_Mesh_Surface(void *a, void *b) s->TriVertexArray = new VertexArray(3, Tree_Nbr(s->Simplexes)); s->TriVertexArray->fill = 1; Tree_Action(s->Simplexes, Draw_Mesh_Triangle); - if(s->TriVertexArray) s->TriVertexArray->fill = 0; + if(s->TriVertexArray){ + Msg(DEBUG, "%d triangles in vertex array", s->TriVertexArray->num); + s->TriVertexArray->fill = 0; + } // quads if(s->QuadVertexArray) delete s->QuadVertexArray; s->QuadVertexArray = new VertexArray(4, Tree_Nbr(s->Quadrangles)); s->QuadVertexArray->fill = 1; Tree_Action(s->Quadrangles, Draw_Mesh_Quadrangle); - if(s->QuadVertexArray) s->QuadVertexArray->fill = 0; + if(s->QuadVertexArray){ + Msg(DEBUG, "%d quads in vertex array", s->QuadVertexArray->num); + s->QuadVertexArray->fill = 0; + } } if(s->TriVertexArray) Draw_Mesh_Array(s->TriVertexArray, diff --git a/Graphics/Post.cpp b/Graphics/Post.cpp index 6d3a5869010fef700b18d3cb162fabb72dec7e7f..44e9eb3ae27229db56427d5e7b368efcb8496634 100644 --- a/Graphics/Post.cpp +++ b/Graphics/Post.cpp @@ -1,4 +1,4 @@ -// $Id: Post.cpp,v 1.66 2004-05-30 06:24:02 geuzaine Exp $ +// $Id: Post.cpp,v 1.67 2004-06-01 16:49:01 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -413,7 +413,7 @@ void Draw_Post(void) // this limitation) if(!CTX.post.vertex_arrays && CTX.alpha && ColorTable_IsAlpha(&v->CT) && v->DrawScalars && (changedEye() || v->Changed)) { - Msg(DEBUG, "Sorting for transparency (NO vertex array)"); + Msg(DEBUG, "Sorting View[%d] for transparency (NO vertex array)", v->Index); if(v->NbST && v->DrawTriangles) { nb = List_Nbr(v->ST) / v->NbST; qsort(v->ST->array, v->NbST, nb * sizeof(double), compareEye3Nodes); @@ -471,12 +471,12 @@ void Draw_Post(void) if(v->TriVertexArray){ if(v->Boundary < 1 && !v->ShowElement && v->IntervalsType != DRAW_POST_NUMERIC && v->IntervalsType != DRAW_POST_ISO){ - Msg(DEBUG, "Skiping 2D scalar pass alltogether!"); + Msg(DEBUG, "View[%d]: skiping 2D scalar pass alltogether", v->Index); skip_2d = 1; } if(v->Boundary < 2 && !v->ShowElement && v->IntervalsType != DRAW_POST_NUMERIC && v->IntervalsType != DRAW_POST_ISO){ - Msg(DEBUG, "Skiping 3D scalar pass alltogether!"); + Msg(DEBUG, "View[%d]: skiping 3D scalar pass alltogether", v->Index); skip_3d = 1; } } @@ -521,14 +521,16 @@ void Draw_Post(void) } pass_1: - if(v->TriVertexArray) + if(v->TriVertexArray && v->TriVertexArray->fill){ + Msg(DEBUG, "View[%d]; %d tris in vertex array", v->Index, v->TriVertexArray->num); v->TriVertexArray->fill = 0; + } } if(v->TriVertexArray && v->TriVertexArray->num){ if(CTX.alpha && ColorTable_IsAlpha(&v->CT) && (changedEye() || v->Changed)){ - Msg(DEBUG, "Sorting for transparency (WITH vertex array)"); + Msg(DEBUG, "Sorting View[%d] for transparency (WITH vertex array)", v->Index); v->TriVertexArray->sort(storedEye); }