added FaceFauxBorder function
This commit is contained in:
parent
0e15b05070
commit
6d042e5200
|
@ -393,6 +393,24 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
/// \brief Marks feature edges according to border flag.
|
||||
/// Actually it marks as fauxedges all the non border edges,
|
||||
///
|
||||
static void FaceFauxBorder(MeshType &m)
|
||||
{
|
||||
RequirePerFaceFlags(m);
|
||||
RequireFFAdjacency(m);
|
||||
//initially Nothing is faux (e.g all crease)
|
||||
FaceClearF(m);
|
||||
// Then mark faux only if the signed angle is the range.
|
||||
for(FaceIterator fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD())
|
||||
{
|
||||
for(int z=0;z<(*fi).VN();++z)
|
||||
{
|
||||
if(!face::IsBorder(*fi,z) ) (*fi).SetF(z);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// \brief Marks feature edges according to a given angle
|
||||
/// Actually it marks as fauxedges all the non feature edges,
|
||||
|
|
Loading…
Reference in New Issue