CuboidGeometry constructor

CuboidGeometry(
  1. Vector3 extents, {
  2. bool debugColors = false,
})

Builds a cuboid sized to extents.

When debugColors is true each corner carries a distinct vertex color.

Implementation

factory CuboidGeometry(Vector3 extents, {bool debugColors = false}) =>
    CuboidGeometry._(buildCuboidArrays(extents, debugColors: debugColors));