GU_RandomPoint Class Reference

#include <GU_RandomPoint.h>

List of all members.

Static Public Member Functions

static void generatePoints (GU_Detail &gdp, int npoints, uint seed, UT_FloatArray &probability, const GB_PrimitiveGroup *group)
 Random Point Generation.


Detailed Description

Definition at line 28 of file GU_RandomPoint.h.


Member Function Documentation

static void GU_RandomPoint::generatePoints ( GU_Detail gdp,
int  npoints,
uint  seed,
UT_FloatArray probability,
const GB_PrimitiveGroup group 
) [static]

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.


The documentation for this class was generated from the following file:

Generated on Mon Jan 28 00:48:29 2013 for HDK by  doxygen 1.5.9