Klamp't  0.9.0
Public Member Functions | List of all members
Klampt::Polygon2DSampler Class Reference

Samples points in a convex polygon. More...

#include <Polygon2DSampler.h>

Inheritance diagram for Klampt::Polygon2DSampler:

Public Member Functions

void Set (const vector< Vector2 > &poly)
void Set (const vector< PointRay2D > &poly, Real rayBound)
void Sample (Vector2 &x) const
bool IsEmpty () const
void Clear ()

Additional Inherited Members

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

Detailed Description

Samples points in a convex polygon.

Allows unbounded rays, which are capped at some distance and the resulting polygon is triangulated.

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