CuboidShape class final

Axis-aligned box centred on the origin.

Uses 24 vertices rather than 8: each face needs its own normal and UV set, and sharing corners would average the normals into something round.

Named "cuboid" rather than "box" because flutter/material.dart exports a BoxShape enum, and a clash there would force every app importing both to disambiguate.

Inheritance

Constructors

CuboidShape({Vector3? size})

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Name for diagnostics and UI labels.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Vector3
final

Methods

build({VertexLayout layout = VertexLayout.standard}) → MeshData
Generates the geometry for the requested layout.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited