mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
4x3 segment compatibilty
This commit is contained in:
@@ -31,13 +31,15 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcCompositeCurve* inst) {
|
|||||||
IfcSchema::IfcCompositeCurveSegment::list::ptr segments = inst->Segments();
|
IfcSchema::IfcCompositeCurveSegment::list::ptr segments = inst->Segments();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (auto& segment : *segments) {
|
for (auto& segment_ : *segments) {
|
||||||
if (!(segment)->declaration().is(IfcSchema::IfcCompositeCurveSegment::Class())) {
|
if (!(segment_)->declaration().is(IfcSchema::IfcCompositeCurveSegment::Class())) {
|
||||||
Logger::Error("Not implemented", segment);
|
Logger::Error("Not implemented", segment_);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto segment = (IfcSchema::IfcCompositeCurveSegment*) segment_;
|
||||||
|
|
||||||
IfcSchema::IfcCurve* curve = ((IfcSchema::IfcCompositeCurveSegment*)(segment))->ParentCurve();
|
IfcSchema::IfcCurve* curve = segment->ParentCurve();
|
||||||
|
|
||||||
if (curve->as<IfcSchema::IfcLine>()) {
|
if (curve->as<IfcSchema::IfcLine>()) {
|
||||||
Logger::Notice("Infinite IfcLine used as ParentCurve of segment, treating as a segment", segment);
|
Logger::Notice("Infinite IfcLine used as ParentCurve of segment, treating as a segment", segment);
|
||||||
@@ -165,4 +167,4 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcCompositeCurve* l, TopoDS_
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user