diff --git a/wrap/miq/core/param_stats.h b/wrap/miq/core/param_stats.h index 58b0fb2f..94532af0 100644 --- a/wrap/miq/core/param_stats.h +++ b/wrap/miq/core/param_stats.h @@ -171,6 +171,26 @@ typename FaceType::ScalarType LaplaceDistortion(FaceType &f ,typename FaceType:: return lapl; } +template< class MeshType> +void UpdateUVBox(MeshType &mesh) +{ + typedef typename MeshType::ScalarType ScalarType; + typename MeshType::template PerMeshAttributeHandle > Handle_UVBox; + bool HasUVBox=vcg::tri::HasPerMeshAttribute(mesh,std::string("UVBox")); + if (!HasUVBox) + Handle_UVBox=vcg::tri::Allocator::template AddPerMeshAttribute >(mesh,std::string("UVBox")); + else + Handle_UVBox=vcg::tri::Allocator::template GetPerMeshAttribute >(mesh,"UVBox"); + Handle_UVBox().SetNull(); + for (unsigned int i=0;i void SetFaceQualityByDistortion(MeshType &Tmesh, typename MeshType::ScalarType h)