mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
#329 Only auto close IfcCompositeCurve when used for profile
This commit is contained in:
@@ -253,6 +253,9 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCompositeCurve* l, TopoDS_Wire
|
|||||||
wire_last_vertex = edge_last_vertex;
|
wire_last_vertex = edge_last_vertex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IfcEntityList::ptr profile = l->entity->getInverse(IfcSchema::Type::IfcProfileDef, -1);
|
||||||
|
|
||||||
|
if (profile && profile->size() > 0) {
|
||||||
gp_Pnt first = BRep_Tool::Pnt(edge_last_vertex);
|
gp_Pnt first = BRep_Tool::Pnt(edge_last_vertex);
|
||||||
gp_Pnt last = BRep_Tool::Pnt(wire_first_vertex);
|
gp_Pnt last = BRep_Tool::Pnt(wire_first_vertex);
|
||||||
|
|
||||||
@@ -262,6 +265,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCompositeCurve* l, TopoDS_Wire
|
|||||||
|
|
||||||
Logger::Message(Logger::LOG_ERROR, "Closed gap on:", l->entity);
|
Logger::Message(Logger::LOG_ERROR, "Closed gap on:", l->entity);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wire = w.Wire();
|
wire = w.Wire();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user