Removed the useless faceprojection flag update function. No more needed!
This commit is contained in:
parent
e340e6d1c0
commit
0e76a8e0ce
|
@ -337,24 +337,6 @@ static void VertexBorderFromNone(MeshType &m)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function fill the flags with the info on what is the best projection direction
|
|
||||||
/// for a given face. Used by the point-face distance function when do not exploiting pre-computed
|
|
||||||
/// per-face data (the so called edge component)
|
|
||||||
static void FaceProjection(MeshType &m)
|
|
||||||
{
|
|
||||||
FaceIterator fi;
|
|
||||||
for(fi=m.face.begin();fi!=m.face.end();++fi) // Lo riempio con i dati delle facce
|
|
||||||
if( ! (*fi).IsD() )
|
|
||||||
{
|
|
||||||
ScalarType nx = math::Abs((*fi).cN()[0]);
|
|
||||||
ScalarType ny = math::Abs((*fi).cN()[1]);
|
|
||||||
ScalarType nz = math::Abs((*fi).cN()[2]);
|
|
||||||
if(nx>ny && nx>nz) { (*fi).Flags() |= FaceType::NORMX; }
|
|
||||||
else if(ny>nz) { (*fi).Flags() |= FaceType::NORMY; }
|
|
||||||
else { (*fi).Flags() |= FaceType::NORMZ; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Computes per-face border flags without requiring any kind of topology
|
/// Computes per-face border flags without requiring any kind of topology
|
||||||
/// It has a O(fn log fn) complexity.
|
/// It has a O(fn log fn) complexity.
|
||||||
static void FaceBorderFromNone(MeshType &m)
|
static void FaceBorderFromNone(MeshType &m)
|
||||||
|
|
Loading…
Reference in New Issue