createCube method

  1. @override
Mesh createCube({
  1. required double sideLength,
  2. List<MeshBasicMaterial>? materials,
})
override

Creates and returns a cube mesh.

Implementation

@override
Mesh createCube(
    {required double sideLength, List<MeshBasicMaterial>? materials}) {
  final BoxGeometry geometry =
      BoxGeometry(sideLength, sideLength, sideLength);
  return createObject(geometry, materials);
}