Mesh.primitives constructor

Mesh.primitives({
  1. required List<MeshPrimitive> primitives,
})

Creates a Mesh composed of the supplied MeshPrimitive list.

Use this constructor for multi-material models, where each MeshPrimitive pairs a separate Geometry with its own Material.

Implementation

Mesh.primitives({required this.primitives});