# TTriangleSampler Class Reference

Inheritance diagram for TTriangleSampler:

List of all members.

## Public Member Functions
| TTriangleSampler ()
| ~TTriangleSampler ()
int32 | GetTriangleCount () const
void | SetTriangleCount (int32 count)
void | AddTriangle (int32 index, real area)
int32 | GetSamplePoint (TSamplePoint &outSample)
void | SetNewSeeds (uint32 fromSeed)
real | GetTotalArea ()
## Protected Attributes
TMCAtomicCounterHolder | fSampleNum
## Private Attributes
TMCArray< FacetRecord > | fSortedFacets
real | fTotalArea

## Constructor & Destructor Documentation

TTriangleSampler::TTriangleSampler | ( |  | ) |

TTriangleSampler::~TTriangleSampler | ( |  | ) |

## Member Function Documentation

void TTriangleSampler::AddTriangle | ( | int32 | index,
|  | real | area |
| ) |  |  |

int32 TTriangleSampler::GetSamplePoint | ( | TSamplePoint & | outSample | ) |

returns a sample point: the facet index and the coordinates in the facet

Parameters:

  | outSample |

Reimplemented in TPrimitiveSampler.

real TTriangleSampler::GetTotalArea | ( |  | ) | `[inline]`

int32 TTriangleSampler::GetTriangleCount | ( |  | ) | const`[inline]`

void TTriangleSampler::SetNewSeeds | ( | uint32 | fromSeed | ) |

void TTriangleSampler::SetTriangleCount | ( | int32 | count | ) |

## Member Data Documentation

TMCAtomicCounterHolder TTriangleSampler::fSampleNum`[protected]`

TMCArray<FacetRecord> TTriangleSampler::fSortedFacets`[private]`

real TTriangleSampler::fTotalArea`[private]`

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

- PrimitiveSampler.h