ConeMesh class
A conical mesh, with base on the x-z plane, centered origin; and tip pointing upwards parallel to the y-axis.
The default texture mapping follows the standard arrangement of the circular base on the top left quadrant and the flattened side on the bottom half.
Constructors
- ConeMesh.new({required double radius, required double height, required Material material, int segments = 32})
-
Creates a conical mesh with a circular base of radius
radius
on the x-z plane and a height ofheight
pointing upwards parallel to the y-axis.
Properties
- aabb → Aabb3
-
The AABB of the mesh.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- recreateResource ↔ bool
-
getter/setter pairinherited
- resource → void
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surfaceCount → int
-
The total surface count of the mesh.
no setterinherited
-
surfaces
→ Iterable<
Surface> -
An unmodifiable iterable over the list of the surfaces.
no setterinherited
- vertexCount → int
-
no setterinherited
Methods
-
addSurface(
Surface surface) → int -
Add a new
surface
to this mesh. Return the index of the newly added surface. Surfaces are always added to the end of the list.inherited -
bind(
GraphicsDevice device) → void -
inherited
-
createResource(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeSurface(
int index) → void -
Remove the surface at
index
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
updateBounds(
) → void -
Must be called when the mesh has been modified.
inherited
-
updateSurface(
int index, Surface surface) → void -
Replace the surface at
index
withsurface
.inherited -
updateSurfaces(
void update(List< Surface> surfaces)) → void -
Update the surfaces of the mesh, making sure to recompute the bounds
after.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited