diff --git a/vcg/complex/algorithms/geodesic.h b/vcg/complex/algorithms/geodesic.h index 39b47af0..afa4e305 100644 --- a/vcg/complex/algorithms/geodesic.h +++ b/vcg/complex/algorithms/geodesic.h @@ -397,13 +397,9 @@ It is just a simple wrapper of the basic Compute() typename MeshType::template PerFaceAttributeHandle sourceHandle = tri::Allocator::template GetPerFaceAttribute (m,"sources"); - if(!tri::Allocator::IsValidHandle(m,sourceHandle)) - sourceHandle = tri::Allocator::template AddPerFaceAttribute (m,"sources"); typename MeshType::template PerFaceAttributeHandle parentHandle = tri::Allocator::template GetPerFaceAttribute (m,"parent"); - if(!tri::Allocator::IsValidHandle(m,parentHandle)) - parentHandle = tri::Allocator::template AddPerFaceAttribute (m,"parent"); std::vector Heap; tri::UnMarkAll(m); @@ -463,13 +459,9 @@ It is just a simple wrapper of the basic Compute() typename MeshType::template PerVertexAttributeHandle sourceHandle = tri::Allocator::template GetPerVertexAttribute (m,"sources"); - if(!tri::Allocator::IsValidHandle(m,sourceHandle)) - sourceHandle = tri::Allocator::template AddPerVertexAttribute (m,"sources"); typename MeshType::template PerVertexAttributeHandle parentHandle = tri::Allocator::template GetPerVertexAttribute (m,"parent"); - if(!tri::Allocator::IsValidHandle(m,parentHandle)) - parentHandle = tri::Allocator::template AddPerVertexAttribute (m,"parent"); std::vector Heap; tri::UnMarkAll(m);