apply method

Mesh apply([
  1. Mesh? mesh
])

Implementation

Mesh apply([Mesh? mesh]) {
  index();
  mesh ??= Mesh();
  return mesh
    ..addSurface(
      Surface(
        vertices: _vertices,
        indices: _indices,
        material: _lastMaterial,
      ),
    );
}