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 f0469c18f8
commit d595ca002d
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.