A couple tweaks for IfcCurveSegment

This commit is contained in:
Richard Brice
2023-11-09 09:48:05 -08:00
parent 12e69ff07a
commit 8303a04b4f
+1 -2
View File
@@ -106,7 +106,7 @@ class segment_geometry_adjuster {
// Get the parent of this segment. If it is a IfcGradientCurve or IfcSegmentedRefernceCurve // Get the parent of this segment. If it is a IfcGradientCurve or IfcSegmentedRefernceCurve
// look for the optional EndPoint attribute // look for the optional EndPoint attribute
auto curves = inst->UsingCurves(); auto curves = inst->UsingCurves();
if (curves && curves->size() { if (curves && curves->size()) {
auto curve = *curves->begin(); auto curve = *curves->begin();
const IfcSchema::IfcPlacement* placement = nullptr; const IfcSchema::IfcPlacement* placement = nullptr;
if (curve->as<IfcSchema::IfcSegmentedReferenceCurve>()) { if (curve->as<IfcSchema::IfcSegmentedReferenceCurve>()) {
@@ -121,7 +121,6 @@ class segment_geometry_adjuster {
} }
} }
} }
}
} }
// To determine the geometry adjustments the curve segment needs to be evaluated // To determine the geometry adjustments the curve segment needs to be evaluated