Code

Use is_straight_curve() instead of three separate dynamic casts