From 6f83d41dbe194c6ebb59ede688cdbddde05f936c Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 6 Dec 2013 07:07:45 +0000 Subject: [PATCH] added a missing &* to convert a returned iterator to a pointer in the allocator sample --- apps/sample/trimesh_allocate/trimesh_allocate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sample/trimesh_allocate/trimesh_allocate.cpp b/apps/sample/trimesh_allocate/trimesh_allocate.cpp index 532b12f5..1c698ae0 100644 --- a/apps/sample/trimesh_allocate/trimesh_allocate.cpp +++ b/apps/sample/trimesh_allocate/trimesh_allocate.cpp @@ -59,7 +59,7 @@ int main() fi->V(2)=ivp[2]; // Alternative, more compact, method for adding a single vertex - ivp[3]=vcg::tri::Allocator::AddVertex(m,MyMesh::CoordType ( 1.0, 1.0, 0.0)); + ivp[3]= &*vcg::tri::Allocator::AddVertex(m,MyMesh::CoordType ( 1.0, 1.0, 0.0)); // Alternative, more compact, method for adding a single face (once you have the vertex pointers) vcg::tri::Allocator::AddFace(m, ivp[1],ivp[0],ivp[3]);