From 03b161942b501d76629dbc0c2990957f960da308 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 2 Jan 2002 10:49:26 +0000 Subject: [PATCH] Fixed the orientation of for_each_triangle cases for QUAD and QUAD_STRIP. --- include/osg/GeoSet | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/osg/GeoSet b/include/osg/GeoSet index 2bf5105d1..df34024e9 100644 --- a/include/osg/GeoSet +++ b/include/osg/GeoSet @@ -511,7 +511,7 @@ void for_each_triangle(GeoSet& gset,T& op) for(int j = 3; j < primLength; j+=2 ) { op(vptr[*(iptr)],vptr[*(iptr+1)],vptr[*(iptr+2)]); - op(vptr[*(iptr)],vptr[*(iptr+3)],vptr[*(iptr+2)]); + op(vptr[*(iptr+1)],vptr[*(iptr+3)],vptr[*(iptr+2)]); iptr+=2; } iptr=iend; @@ -529,7 +529,7 @@ void for_each_triangle(GeoSet& gset,T& op) for(int j = 3; j < primLength; j+=2 ) { op(vptr[*(iptr)],vptr[*(iptr+1)],vptr[*(iptr+2)]); - op(vptr[*(iptr)],vptr[*(iptr+3)],vptr[*(iptr+2)]); + op(vptr[*(iptr+1)],vptr[*(iptr+3)],vptr[*(iptr+2)]); iptr+=2; } iptr=iend; @@ -547,7 +547,7 @@ void for_each_triangle(GeoSet& gset,T& op) for(int j = 3; j < primLength; j+=2 ) { op(*(vptr),*(vptr+1),*(vptr+2)); - op(*(vptr),*(vptr+3),*(vptr+2)); + op(*(vptr+1),*(vptr+3),*(vptr+2)); vptr+=2; } vptr=vend; @@ -567,7 +567,7 @@ void for_each_triangle(GeoSet& gset,T& op) for(int i=0; i