Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
537bc8e3
Commit
537bc8e3
authored
Dec 07, 2020
by
Dennis Gläser
Browse files
[occ] rename common edges function
parent
dfd3fb49
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/occ/breputilities.hh
View file @
537bc8e3
...
...
@@ -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
>
get
Overlap
Edges
(
const
std
::
vector
<
TopoDS_Edge
>&
edges1
,
const
std
::
vector
<
TopoDS_Edge
>&
edges2
)
std
::
vector
<
TopoDS_Edge
>
get
Common
Edges
(
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment