IndexedPolygon
Represents a polygon defined by indices corresponding to vertex data such as positions, texture coordinates, colors, normals, tangents, and bitangents. It can be used to describe a geometric shape for rendering or processing in 3D graphics or geometry applications.
Constructors
Properties
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.
Shifts the indices for position, texture coordinates, colors, normals, tangents, and bitangents by the specified amounts and returns a new IndexedPolygon with the updated indices.
Converts the provided vertex data into a polygon representation.
Triangulates the polygon represented by the provided vertex data.