fix cylinder rounding in ptgen