mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 01:07:59 +00:00
Fixes IfcSectionedSurface and IfcSectionedSolidHorizontal use of PBE.OffsetLateral and OffsetVertical by adding unit conversion factor.
This commit is contained in:
@@ -62,9 +62,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSectionedSolidHorizontal* in
|
|||||||
longitudes.push_back(*pbde->DistanceAlong()->as<IfcSchema::IfcLengthMeasure>(true) * length_unit_);
|
longitudes.push_back(*pbde->DistanceAlong()->as<IfcSchema::IfcLengthMeasure>(true) * length_unit_);
|
||||||
|
|
||||||
Eigen::Vector3d po(
|
Eigen::Vector3d po(
|
||||||
pbde->OffsetLateral().get_value_or(0.),
|
pbde->OffsetLateral().get_value_or(0.) * length_unit_,
|
||||||
// @todo I don't understand whether vertical is an offset relative to the tangent plane or to the global XY plane
|
// @todo I don't understand whether vertical is an offset relative to the tangent plane or to the global XY plane
|
||||||
pbde->OffsetVertical().get_value_or(0.),
|
pbde->OffsetVertical().get_value_or(0.) * length_unit_,
|
||||||
0.);
|
0.);
|
||||||
|
|
||||||
profile_offsets.push_back(po);
|
profile_offsets.push_back(po);
|
||||||
|
|||||||
@@ -64,9 +64,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSectionedSurface* inst) {
|
|||||||
longitudes.push_back(*pbde->DistanceAlong()->as<IfcSchema::IfcLengthMeasure>(true) * length_unit_);
|
longitudes.push_back(*pbde->DistanceAlong()->as<IfcSchema::IfcLengthMeasure>(true) * length_unit_);
|
||||||
|
|
||||||
Eigen::Vector3d po(
|
Eigen::Vector3d po(
|
||||||
pbde->OffsetLateral().get_value_or(0.),
|
pbde->OffsetLateral().get_value_or(0.) * length_unit_,
|
||||||
// @todo I don't understand whether vertical is an offset relative to the tangent plane or to the global XY plane
|
// @todo I don't understand whether vertical is an offset relative to the tangent plane or to the global XY plane
|
||||||
pbde->OffsetVertical().get_value_or(0.),
|
pbde->OffsetVertical().get_value_or(0.) * length_unit_,
|
||||||
0.);
|
0.);
|
||||||
|
|
||||||
profile_offsets.push_back(po);
|
profile_offsets.push_back(po);
|
||||||
|
|||||||
Reference in New Issue
Block a user