nonuniformPoints
fun IMeshData.nonuniformPoints(count: Int, random: Random = Random.Default, weightFunction: WeightFunction): List<Point>(source)
Generates a list of non-uniformly distributed points on the mesh based on a specified weight function.
Return
A list of Point instances representing non-uniformly distributed points on the mesh.
Parameters
count
The number of points to generate.
random
A Random instance used to generate random values for the distribution. Defaults to Random.Default.
weightFunction
A function used to calculate weighting for vertices in a triangle, affecting the distribution of points.