#include <ddgfacet.h>
Class diagram for ddgClippedFacetSet:
Public Members | |||
ddgClippedFacetSet (unsigned int l = 0) | |||
Class constructor. | |||
~ddgClippedFacetSet () | |||
Class destructor. | |||
bool | init (ddgContext *ctx) | ||
Initialize the data and allocate memory. More... | |||
bool | draw (ddgContext *ctx) | ||
Draw the object. | |||
bool | active (int i) | ||
Return true if a sector is active. | |||
unsigned char | classify ( ddgVector3 v) | ||
Given a vector v, return the class of the nearest icosahedron normal. Preprocessing step. | |||
bool | clipVisibleSet (ddgContext *ctx ) | ||
Calculate the visible set of iso polygons and turn those on w.r.t given vector v. More... | |||
void | setFacet ( unsigned int i, bool a ) | ||
Set status of specific facet. |
bool ddgClippedFacetSet::init (ddgContext * ctx) [virtual]
|
Initialize the data and allocate memory.
returns true on error.
Reimplemented from ddgNode.
Reimplemented in ddgStarClass.
bool ddgClippedFacetSet::clipVisibleSet (ddgContext * ctx) |
Calculate the visible set of iso polygons and turn those on w.r.t given vector v.
Usually vector v is forward facing vector of the camera. if vector is null vector and reset is true, all facets are set to active. If reset if false, only facets which are currently active are retested. Returns false if no changes were needed to current state.