MutableIndexedPolygon
Represents a mutable 3D indexed polygon. This class allows modifications to its indices and provides functionality to transform vertex references into a corresponding polygon representation.
The polygon is defined by indices referencing an external vertex data source, such as the position, texture coordinates, normals, colors, tangents, and bitangents of the vertices. These indices can be updated, providing flexibility for dynamic operations on the polygon.
Constructors
Properties
Mutable list of bitangent indices, optional.
Mutable list of color indices specifying the vertex colors.
Mutable list of normal indices, which specify the normals of the vertices.
Mutable list of position indices defining the polygon's vertices.
Mutable list of tangent indices, optional.
Mutable list of texture coordinate indices defining the mapping of textures.
Functions
Determines if the polygon defined by the given vertex data is convex.
Checks if the polygon defined by the given vertex data is planar.
Computes the normal vector of the polygon based on the given vertex data.
Computes a Point
by interpolating vertex attributes from a 3D polygon using barycentric coordinates.
Computes the 3D position of a point in a polygon using barycentric coordinates.
Converts the provided vertex data into a polygon representation.