modified to work with mesh with float as scalar type
This commit is contained in:
parent
1016587ead
commit
8afa67c9be
|
|
@ -780,9 +780,11 @@ public:
|
||||||
size_t sum=0;
|
size_t sum=0;
|
||||||
for (size_t j=0;j<SharpEdge[i].size();j++)
|
for (size_t j=0;j<SharpEdge[i].size();j++)
|
||||||
{
|
{
|
||||||
|
CoordType currPos;
|
||||||
|
currPos.Import(testPos);
|
||||||
CoordType closest;
|
CoordType closest;
|
||||||
ScalarType dist;
|
ScalarType dist;
|
||||||
vcg::LinePointDistance(SharpEdge[i][j],testPos,closest,dist);
|
vcg::LinePointDistance(SharpEdge[i][j],currPos,closest,dist);
|
||||||
av_closest+=closest;
|
av_closest+=closest;
|
||||||
sum++;
|
sum++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue