Skip to content
Snippets Groups Projects
Commit 40c84bdf authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

Added a function to detect if a GVertex is on a seam of a GFace

parent 692039a5
No related branches found
No related tags found
No related merge requests found
......@@ -73,3 +73,12 @@ MElement *GVertex::getMeshElement(unsigned int index)
return points[index];
return 0;
}
bool GVertex::isOnSeam(const GFace *gf) const
{
std::list<GEdge*>::const_iterator eIter = l_edges.begin();
for (; eIter != l_edges.end(); eIter++) {
if ( (*eIter)->isSeam(gf) ) return true;
}
return false;
}
......@@ -71,6 +71,9 @@ class GVertex : public GEntity
// get the element at the given index
MElement *getMeshElement(unsigned int index);
// return true if this vertex is on a seam of the given face
bool isOnSeam(const GFace *gf) const;
std::vector<MPoint*> points;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment