mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Missing FindFromKey() overload on older versions of occt
This commit is contained in:
@@ -991,9 +991,8 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSweptDiskSolid* l, TopoDS_Shap
|
|||||||
TopExp::Vertices(wire, v0, v1);
|
TopExp::Vertices(wire, v0, v1);
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape map;
|
TopTools_IndexedDataMapOfShapeListOfShape map;
|
||||||
TopExp::MapShapesAndAncestors(wire, TopAbs_VERTEX, TopAbs_EDGE, map);
|
TopExp::MapShapesAndAncestors(wire, TopAbs_VERTEX, TopAbs_EDGE, map);
|
||||||
TopTools_ListOfShape edges;
|
if (map.Contains(v0) && map.FindFromKey(v0).Extent() == 1) {
|
||||||
if (map.FindFromKey(v0, edges) && edges.Extent() == 1) {
|
edge = TopoDS::Edge(map.FindFromKey(v0).First());
|
||||||
edge = TopoDS::Edge(edges.First());
|
|
||||||
} else {
|
} else {
|
||||||
Logger::Error("Unable to locate first edge of:", l->Directrix()->entity);
|
Logger::Error("Unable to locate first edge of:", l->Directrix()->entity);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user