Enforcing total signed curvature.