Commit 537bc8e3 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[occ] rename common edges function

parent dfd3fb49
......@@ -616,14 +616,14 @@ namespace OCCUtilities {
/*!
* \ingroup OpenCascade
* \brief Determines the overlap edges between two sets of edges.
* \brief Determines the common edges between two sets of edges.
* \param edges1 the first set of edges
* \param edges2 the second set of edges
* \note This assumes that the sets of edges don't contain any duplicates!
* \returns A vector with the edges on which the two faces coincide.
* \returns A vector with the coinciding edges.
*/
std::vector<TopoDS_Edge> getOverlapEdges(const std::vector<TopoDS_Edge>& edges1,
const std::vector<TopoDS_Edge>& edges2)
std::vector<TopoDS_Edge> getCommonEdges(const std::vector<TopoDS_Edge>& edges1,
const std::vector<TopoDS_Edge>& edges2)
{
std::vector<TopoDS_Edge> overlapEdges;
for (const auto& e : edges1)
......@@ -641,9 +641,14 @@ namespace OCCUtilities {
* \param face2 the shape of the second face
* \returns A vector with the edges on which the two faces coincide.
*/
std::vector<TopoDS_Edge> getOverlapEdges(const TopoDS_Face& face1,
const TopoDS_Face& face2)
{ return getOverlapEdges(getEdges(face1), getEdges(face2)); }
std::vector<TopoDS_Edge> getCommonEdges(const TopoDS_Face& face1,
const TopoDS_Face& face2)
{ return getCommonEdges(getEdges(face1), getEdges(face2)); }
template<class... Args>
[[deprecated("Use getCommonEdges() instead! Will be removed after the 1.2 release!")]]
std::vector<TopoDS_Edge> getOverlapEdges(Args&&... args)
{ return getCommonEdges(std::forward<Args>(args)...); }
} // end namespace OCCUtilities
} // end namespace Frackit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment