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]);