bow-simulation / virtualbow

Software for designing and simulating bows
http://www.virtualbow.org/
GNU General Public License v3.0
23 stars 3 forks source link

Simulation fails for certain lengths of the limb #176

Closed stfnp closed 4 years ago

stfnp commented 4 years ago

Only observed on Windows so far. A length of 0.743 fails with the message "Error: bad_function_call". The problem is in ProfileCurve::::operator()(double arg) and find_interval(...) where the comparison 0.743 <= 0.743 returns false.

A possible solution would be to allow arguments that exceed the domain of the function and just extrapolate. Do the same for the cubic splines.