Package-level declarations
Types
Represents a type alias for a function that processes data associated with a polygon and vertex data, producing a result of type T.
A type alias representing a weight function for vertices in a polygon.
Properties
A constant weight function for barycentric coordinates that always returns a weight of 1.0.
A lambda function that extracts a Point from a given IIndexedPolygon, IVertexData, and Barycentric coordinate.
A lambda function that computes the 3D position within an indexed polygon given vertex data and barycentric coordinates.
Functions
Computes a barycentric coordinate vector derived from hashing operations.
Generates a list of points within the mesh using a non-uniform distribution. The points are sampled according to a provided weight function, where each point is influenced by the weights of the vertices of the triangulated polygons.
Generates a list of samples by distributing random points across the mesh using weighted areas of triangles and a provided sample function.
Generates a list of 3D points distributed on a mesh surface using a nonuniform sampling strategy with Hammersley sequence and a custom weight function.
Generates a list of non-uniformly distributed points on the mesh based on a specified weight function.
Generates a non-uniform sequence of 3D points based on the provided weight function, using a combination of randomized values and the R2 low-discrepancy quasirandom sequence.
Generates a 3D vector with components representing uniform barycentric coordinates over a standard triangle. The barycentric coordinates are computed based on two input parameters, u
and v
, which are random values typically ranging between 0 and 1.
Adjusts a barycentric coordinate based on weights for each component and normalizes the result.