mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Missing FindFromKey() overload on older versions of occt
This commit is contained in:
@@ -115,8 +115,8 @@ namespace {
|
|||||||
TopExp::MapShapesAndAncestors(w, TopAbs_VERTEX, TopAbs_EDGE, map);
|
TopExp::MapShapesAndAncestors(w, TopAbs_VERTEX, TopAbs_EDGE, map);
|
||||||
|
|
||||||
bool all_linear = true, single_circle = false, first = true;
|
bool all_linear = true, single_circle = false, first = true;
|
||||||
TopTools_ListOfShape edges;
|
|
||||||
if (map.FindFromKey(v, edges)) {
|
const TopTools_ListOfShape& edges = map.FindFromKey(v);
|
||||||
TopTools_ListIteratorOfListOfShape it(edges);
|
TopTools_ListIteratorOfListOfShape it(edges);
|
||||||
for (; it.More(); it.Next()) {
|
for (; it.More(); it.Next()) {
|
||||||
const TopoDS_Edge& e = TopoDS::Edge(it.Value());
|
const TopoDS_Edge& e = TopoDS::Edge(it.Value());
|
||||||
@@ -127,7 +127,6 @@ namespace {
|
|||||||
all_linear = all_linear && all_linear;
|
all_linear = all_linear && all_linear;
|
||||||
single_circle = first && is_circle;
|
single_circle = first && is_circle;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (all_linear) {
|
if (all_linear) {
|
||||||
BRep_Builder b;
|
BRep_Builder b;
|
||||||
|
|||||||
Reference in New Issue
Block a user