Klamp't  0.8.1
Public Member Functions | List of all members
Polygon3DSampler Class Reference

Samples points in a convex polygon (in 3D). More...

#include <Polygon2DSampler.h>

Inheritance diagram for Polygon3DSampler:

Public Member Functions

void Set (const vector< Vector3 > &poly)
void Sample (Vector3 &x) const
bool IsEmpty () const
void Clear ()

Additional Inherited Members

- Protected Member Functions inherited from Triangle3DSampler
void InitAreas ()
void Clear ()
Real TotalArea () const
int SampleTri () const
void SamplePointOnTri (int tri, Vector3 &pt) const
void SamplePoint (Vector3 &pt) const
void SamplePoints (int num, std::vector< Vector3 > &pts) const
void SamplePoints (int num, std::vector< int > &tris, std::vector< Vector3 > &pts) const
- Protected Attributes inherited from Triangle3DSampler
std::vector< Triangle3D > tris
std::vector< Real > areas
std::vector< Real > sumAreas

Detailed Description

Samples points in a convex polygon (in 3D).

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