Trimesh constructor

Trimesh(
  1. List<double> vertices,
  2. List<int> indices, [
  3. List<double>? normals,
  4. List<double>? uvs,
])

Implementation

Trimesh(
  this.vertices,
  this.indices,
  [
    List<double>? normals,
    this.uvs
  ]
):super(type: ShapeType.trimesh) {
  updateEdges();
  updateNormals();
  normals = normals;

  updateAABB();
  updateBoundingSphereRadius();
  updateTree();
}