updatePath method

void updatePath(
  1. ScenePath path
)

Re-sweeps the profile along path, reusing the GPU buffers.

The profile, station count, and caps are unchanged, so the topology is stable. Requires GeometryStorage.updatable.

Implementation

void updatePath(ScenePath path) {
  final arrays = buildExtrudeArrays(
    path,
    profile: _profile,
    stations: _stations,
    caps: _caps,
  );
  updatePositions(arrays.positions);
  updateNormals(arrays.normals);
  updateTexCoords(arrays.texCoords);
}