Function ifcopenshell::geom::deflection_samples¶
Defined in File function_item_evaluator.h
Function Documentation¶
-
std::vector<double> ifcopenshell::geom::deflection_samples(std::vector<double> boundaries, const section_function §ion_at, double linear_deflection, double angular_deflection, double tolerance)¶
Distances along at which to place sections, refined until they follow the function within the given deflections.
Every boundary is a sample. Each interval between samples is bisected until, at a quarter, half and three quarters of it, every section point is within linear_deflection of the straight line between its positions at the interval’s ends, every face between two consecutive points of a loop is within linear_deflection of flat, and the function turns by at most angular_deflection. A straight with an unchanging section therefore needs only its ends.