added vertex border comptuation from EEadj on 1-manifolds

This commit is contained in:
Luigi Malomo 2018-05-18 13:24:58 +02:00
parent 8b5a56b262
commit 4ca887ba58
1 changed files with 17 additions and 0 deletions

View File

@ -418,6 +418,23 @@ public:
}
}
/// Compute the PerVertex Border flag deriving it from the Edge-Edge adjacency (made for edgemeshes)
static void VertexBorderFromEdgeAdj(MeshType &m)
{
RequirePerVertexFlags(m);
RequireEEAdjacency(m);
VertexClearB(m);
for (EdgeIterator ei=m.edge.begin();ei!=m.edge.end();++ei)
if (!ei->IsD())
{
for (int z=0; z<2; ++z)
if (edge::IsEdgeBorder(*ei, z))
{
ei->V(z)->SetB();
}
}
}
/// \brief Marks feature edges according to two signed dihedral angles.
/// Actually it uses the face_edge selection bit on faces,