Add path.Resample(totalPoints)