From 4fc33e2e95fd1033661b0a6dfcb5614bed81dedf Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 19 Jun 2014 11:42:23 +0000 Subject: [PATCH] Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType --- wrap/gl/glu_tessellator_cap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wrap/gl/glu_tessellator_cap.h b/wrap/gl/glu_tessellator_cap.h index 7f12302a..c11250d1 100644 --- a/wrap/gl/glu_tessellator_cap.h +++ b/wrap/gl/glu_tessellator_cap.h @@ -15,8 +15,9 @@ template void CapEdgeMesh(MeshType &em, MeshType &cm, bool revertFlag=false) { typedef typename MeshType::EdgeType EdgeType; - std::vector< std::vector > outlines; - std::vector outline; + typedef typename MeshType::CoordType CoordType; + std::vector< std::vector > outlines; + std::vector outline; UpdateFlags::EdgeClearV(em); UpdateTopology::EdgeEdge(em); int nv=0; @@ -51,7 +52,7 @@ void CapEdgeMesh(MeshType &em, MeshType &cm, bool revertFlag=false) std::vector indices; glu_tesselator::tesselate(outlines, indices); - std::vector points; + std::vector points; glu_tesselator::unroll(outlines, points); //typename MeshType::FaceIterator fi=tri::Allocator::AddFaces(cm,nv-2); typename MeshType::FaceIterator fi=tri::Allocator::AddFaces(cm,indices.size()/3);