mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Fixes problem with vertical curve slopes
This commit is contained in:
@@ -821,9 +821,9 @@ class curve_segment_evaluator {
|
|||||||
m.col(3) = Eigen::Vector4d(x, y, 0.0, 1.0);
|
m.col(3) = Eigen::Vector4d(x, y, 0.0, 1.0);
|
||||||
} else if (segment_type == ST_VERTICAL) {
|
} else if (segment_type == ST_VERTICAL) {
|
||||||
// rotate about the Y-axis (slope along u is dx, slope vertically is dy, vertical position is y)
|
// rotate about the Y-axis (slope along u is dx, slope vertically is dy, vertical position is y)
|
||||||
m.col(0) = Eigen::Vector4d(dx, 0, -dy, 0);
|
m.col(0) = Eigen::Vector4d(dx, 0, dy, 0);
|
||||||
m.col(1) = Eigen::Vector4d(0, 1, 0, 0);
|
m.col(1) = Eigen::Vector4d(0, 1, 0, 0);
|
||||||
m.col(2) = Eigen::Vector4d(dy, 0, dx, 0);
|
m.col(2) = Eigen::Vector4d(-dy, 0, dx, 0);
|
||||||
m.col(3) = Eigen::Vector4d(0, 0, y, 1.0); // y is an elevation so store it as z
|
m.col(3) = Eigen::Vector4d(0, 0, y, 1.0); // y is an elevation so store it as z
|
||||||
} else if (segment_type == ST_CANT) {
|
} else if (segment_type == ST_CANT) {
|
||||||
Logger::Warning(std::runtime_error("Use of IfcPolynomialCurve for cant is not supported"));
|
Logger::Warning(std::runtime_error("Use of IfcPolynomialCurve for cant is not supported"));
|
||||||
|
|||||||
Reference in New Issue
Block a user