Mesh constructor

Mesh(
  1. Geometry geometry,
  2. Material material
)

Creates a Mesh consisting of a single MeshPrimitive with the given Geometry and Material.

Implementation

Mesh(Geometry geometry, Material material)
    : primitives = [MeshPrimitive(geometry, material)];