Static Public Member Functions
|static void||generatePoints (GU_Detail &gdp, int npoints, uint seed, UT_FloatArray &probability, const GB_PrimitiveGroup *group)|
|Random Point Generation. |
|static void GU_RandomPoint::generatePoints||(||GU_Detail &||gdp,|
|const GB_PrimitiveGroup *||group|
Random Point Generation.
This method generates random points from the primitives in the detail. gdp - geometry containing the primitives (and which will contain the points) npoints - The number of points to generate seed - random number seed probability - A probability array. There should be one entry per primitive which determines the probabilty of that primitive having a point generated from it. group - Optionally, only generate from this group of primitives
Points will be generated using as close to a uniform distribution as possible (in uv space on the primitives). The point locations should remain constant based on primitive number, regardless of shearing or scaling.