diff --git a/vcg/complex/algorithms/parametrization/uv_utils.h b/vcg/complex/algorithms/parametrization/uv_utils.h index 2e2d271a..96d1a9e0 100644 --- a/vcg/complex/algorithms/parametrization/uv_utils.h +++ b/vcg/complex/algorithms/parametrization/uv_utils.h @@ -126,6 +126,9 @@ namespace vcg { VertexType *v0=(*fi).V(0); VertexType *v1=(*fi).V1(0); VertexType *v2=(*fi).V2(0); + assert(v0!=v1); + assert(v1!=v2); + assert(v0!=v2); UVCoordType uv1=v1->T().P(); UVCoordType uv2=v2->T().P(); int index=v0-&(m.vert[0]); @@ -138,6 +141,7 @@ namespace vcg { for (int i=0;i