More 4X3 non-ADD2 permissiveness in param values on polynomials

This commit is contained in:
Thomas Krijnen
2024-06-28 13:39:19 +02:00
parent db50c87bf4
commit a2334f4ce0
+2
View File
@@ -55,6 +55,8 @@ double translate_to_length_measure(const IfcSchema::IfcCurve* crv, double param_
return fabs(clothoid->ClothoidConstant()*sqrt(PI))*param_value;
} else if (auto circ = crv->as<IfcSchema::IfcCircle>()) {
return circ->Radius() * param_value;
} else if (auto circ = crv->as<IfcSchema::IfcPolynomialCurve>()) {
return param_value;
} else {
throw std::runtime_error("Unsupported curve measure type");
}