mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Merge pull request #3987 from RickBrice/v0.8.0
Fixes build issue with mapping
This commit is contained in:
@@ -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>()) {
|
||||||
@@ -119,7 +119,8 @@ if (curves && curves->size() {
|
|||||||
if (placement) {
|
if (placement) {
|
||||||
start_of_next_inst_ = taxonomy::cast<taxonomy::matrix4>(mapping->map(placement))->ccomponents();
|
start_of_next_inst_ = taxonomy::cast<taxonomy::matrix4>(mapping->map(placement))->ccomponents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user