mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 08:52:43 +00:00
More 4X3 non-ADD2 permissiveness in param values on polynomials
This commit is contained in:
@@ -55,6 +55,8 @@ double translate_to_length_measure(const IfcSchema::IfcCurve* crv, double param_
|
|||||||
return fabs(clothoid->ClothoidConstant()*sqrt(PI))*param_value;
|
return fabs(clothoid->ClothoidConstant()*sqrt(PI))*param_value;
|
||||||
} else if (auto circ = crv->as<IfcSchema::IfcCircle>()) {
|
} else if (auto circ = crv->as<IfcSchema::IfcCircle>()) {
|
||||||
return circ->Radius() * param_value;
|
return circ->Radius() * param_value;
|
||||||
|
} else if (auto circ = crv->as<IfcSchema::IfcPolynomialCurve>()) {
|
||||||
|
return param_value;
|
||||||
} else {
|
} else {
|
||||||
throw std::runtime_error("Unsupported curve measure type");
|
throw std::runtime_error("Unsupported curve measure type");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user