Mesh class
A Resource that represents a geometric shape that is divided up in one or more Surfaces.
This class isn't a true resource, it does not upload it self to the GPU. Instead it uploads Surfaces, it acts as a proxy.
- Inheritance
- Implementers
Constructors
Properties
- aabb → Aabb3
-
The AABB of the mesh.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- resource ↔ void
-
The resource data.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surfaceCount → int
-
The total surface count of the mesh.
no setter
Methods
-
addMaterialToSurface(
int index, Material material) → void -
Add a material to the surface at
index
. -
addSurface(
List< Vertex> vertices, List<int> indices, {Material? material}) → void -
Add a new surface represented by
vertices
,indices
and a material. -
bind(
GraphicsDevice device) → void -
getMaterialToSurface(
int index) → Material? -
Get a material from the surface at
index
. -
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