updated to new GetPer*Attribute
This commit is contained in:
parent
ffcdfa9f88
commit
512da45bf7
|
@ -397,13 +397,9 @@ It is just a simple wrapper of the basic Compute()
|
||||||
|
|
||||||
typename MeshType::template PerFaceAttributeHandle<FacePointer> sourceHandle
|
typename MeshType::template PerFaceAttributeHandle<FacePointer> sourceHandle
|
||||||
= tri::Allocator<MeshType>::template GetPerFaceAttribute<FacePointer> (m,"sources");
|
= tri::Allocator<MeshType>::template GetPerFaceAttribute<FacePointer> (m,"sources");
|
||||||
if(!tri::Allocator<MeshType>::IsValidHandle(m,sourceHandle))
|
|
||||||
sourceHandle = tri::Allocator<MeshType>::template AddPerFaceAttribute<FacePointer> (m,"sources");
|
|
||||||
|
|
||||||
typename MeshType::template PerFaceAttributeHandle<FacePointer> parentHandle
|
typename MeshType::template PerFaceAttributeHandle<FacePointer> parentHandle
|
||||||
= tri::Allocator<MeshType>::template GetPerFaceAttribute<FacePointer> (m,"parent");
|
= tri::Allocator<MeshType>::template GetPerFaceAttribute<FacePointer> (m,"parent");
|
||||||
if(!tri::Allocator<MeshType>::IsValidHandle(m,parentHandle))
|
|
||||||
parentHandle = tri::Allocator<MeshType>::template AddPerFaceAttribute<FacePointer> (m,"parent");
|
|
||||||
|
|
||||||
std::vector<FaceDist> Heap;
|
std::vector<FaceDist> Heap;
|
||||||
tri::UnMarkAll(m);
|
tri::UnMarkAll(m);
|
||||||
|
@ -463,13 +459,9 @@ It is just a simple wrapper of the basic Compute()
|
||||||
|
|
||||||
typename MeshType::template PerVertexAttributeHandle<VertexPointer> sourceHandle
|
typename MeshType::template PerVertexAttributeHandle<VertexPointer> sourceHandle
|
||||||
= tri::Allocator<MeshType>::template GetPerVertexAttribute<VertexPointer> (m,"sources");
|
= tri::Allocator<MeshType>::template GetPerVertexAttribute<VertexPointer> (m,"sources");
|
||||||
if(!tri::Allocator<MeshType>::IsValidHandle(m,sourceHandle))
|
|
||||||
sourceHandle = tri::Allocator<MeshType>::template AddPerVertexAttribute<VertexPointer> (m,"sources");
|
|
||||||
|
|
||||||
typename MeshType::template PerVertexAttributeHandle<VertexPointer> parentHandle
|
typename MeshType::template PerVertexAttributeHandle<VertexPointer> parentHandle
|
||||||
= tri::Allocator<MeshType>::template GetPerVertexAttribute<VertexPointer> (m,"parent");
|
= tri::Allocator<MeshType>::template GetPerVertexAttribute<VertexPointer> (m,"parent");
|
||||||
if(!tri::Allocator<MeshType>::IsValidHandle(m,parentHandle))
|
|
||||||
parentHandle = tri::Allocator<MeshType>::template AddPerVertexAttribute<VertexPointer> (m,"parent");
|
|
||||||
|
|
||||||
std::vector<DIJKDist> Heap;
|
std::vector<DIJKDist> Heap;
|
||||||
tri::UnMarkAll(m);
|
tri::UnMarkAll(m);
|
||||||
|
|
Loading…
Reference in New Issue