resolved 1 bug with stiffness handler
This commit is contained in:
parent
be7c2536f7
commit
954da5343f
|
|
@ -154,6 +154,8 @@ public:
|
||||||
bool hasStiffness = vcg::tri::HasPerFaceAttribute(mesh,std::string("Stiffness"));
|
bool hasStiffness = vcg::tri::HasPerFaceAttribute(mesh,std::string("Stiffness"));
|
||||||
if(!hasStiffness)
|
if(!hasStiffness)
|
||||||
Handle_Stiffness=vcg::tri::Allocator<MeshType>::template AddPerFaceAttribute<float>(mesh,std::string("Stiffness"));
|
Handle_Stiffness=vcg::tri::Allocator<MeshType>::template AddPerFaceAttribute<float>(mesh,std::string("Stiffness"));
|
||||||
|
else
|
||||||
|
Handle_Stiffness=vcg::tri::Allocator<MeshType>::template GetPerFaceAttribute<float>(mesh,std::string("Stiffness"));
|
||||||
|
|
||||||
for(unsigned int i=0;i<mesh.face.size();i++)
|
for(unsigned int i=0;i<mesh.face.size();i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue