use $fa = ($preview) ? 12 : 1; $fs = ($preview) ? 2 : 1; $fn = undef; // Config BallDiameter = 65; BallClearance = 2; BallSealWidth = 2; PlateLip = 2; PlateDiameter = BallDiameter + 2*(BallClearance + BallSealWidth + PlateLip); PlateThick = BallSealWidth/2 + 1; //plate_full(); PlateSep = 0; pd = PlateDiameter+PlateSep; pt = PlateThick; echo("PD=", pd); cap_compression(PlateDiameter, pt);