uniform

fun IMeshData.uniform(count: Int, random: Random = Random.Default): List<Vector3>(source)

Generates a list of uniformly distributed points on the surface of the given mesh.

The method uses triangulation and computes areas of triangular polygons to ensure a uniform distribution of points across the surface.

Return

a list of Vector3 points uniformly distributed across the mesh surface

Parameters

count

the number of points to generate

random

a random number generator instance, defaulting to Random.Default