updateArcLengths method

void updateArcLengths()

Update the cumulative segment distance cache. The method must be called every time curve parameters are changed. If an updated curve is part of a composed curve like CurvePath, updateArcLengths must be called on the composed curve, too.

Implementation

void updateArcLengths() {
  needsUpdate = true;
  getLengths(null);
}