Fix endless loop in pinhead creation.

* Headless stick penetration value from global cfg
* eliminate warnings
This commit is contained in:
tamasmeszaros 2019-10-03 17:18:03 +02:00
parent 4569a6026a
commit 2edd5abf06
4 changed files with 14 additions and 5 deletions

View file

@ -171,6 +171,9 @@ Head::Head(double r_big_mm,
, width_mm(length_mm)
, penetration_mm(penetration)
{
assert(width_mm > 0.);
assert(r_back_mm > 0.);
assert(r_pin_mm > 0.);
// We create two spheres which will be connected with a robe that fits
// both circles perfectly.