PlaneMesh class

Represents a 2D Plane's geometry with a single surface.

Inheritance

Constructors

PlaneMesh({required Vector2 size, Material? material})
Represents a 2D Plane's geometry with a single surface.

Properties

aabb Aabb3
The AABB of the mesh.
no setterinherited
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 setterinherited

Methods

addMaterialToSurface(int index, Material material) → void
Add a material to the surface at index.
inherited
addSurface(List<Vertex> vertices, List<int> indices, {Material? material}) → void
Add a new surface represented by vertices, indices and a material.
inherited
bind(GraphicsDevice device) → void
inherited
getMaterialToSurface(int index) Material?
Get a material from the surface at index.
inherited
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