Polyhedron class
Base class for polyhedra. It is primarily designed for the internal usage in Yuka. Objects of this class are always build up from faces. The edges, vertices and the polyhedron's centroid have to be derived from a valid face definition with the respective methods.
@author {@link https://github.com/Mugen87|Mugen87}
- Implementers
Constructors
Properties
- centroid ↔ Vector3
-
getter/setter pair
-
edges
↔ List<
HalfEdge?> -
getter/setter pair
-
faces
↔ List<
Polygon> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
vertices
↔ List<
Vector3> -
getter/setter pair
Methods
-
computeCentroid(
) → Polyhedron - Computes the centroid of this polyhedron. Assumes its faces have valid centroids.
-
computeUniqueEdges(
) → Polyhedron - Computes unique edges of this polyhedron. Assumes {@link Polyhedron#faces} is properly set.
-
computeUniqueVertices(
) → Polyhedron - Computes unique vertices of this polyhedron. Assumes {@link Polyhedron#faces} is properly set.
-
fromAABB(
AABB aabb) → Polyhedron - Configures this polyhedron so it does represent the given AABB.
-
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