class Cube

Cube render helper class.

Public Fields

[more]int in_count
Count how many vertices are prisoners
[more]vector<double> v
Saves the vertex at the origin of the cube
[more]vector<bool> in
In cache
[more]vector<double> norm
Saves normal vector of approximated plane
[more]list<vector<double> > pol
The approximated polygon

Public Methods

[more] Cube(int i)
Constructor
[more] Cube(int i, double a, double b, double c)
Alternative Constructor setting up origin vector
[more]void polygonize(list<unsigned char >* poly_list, vector<double>* norm)
Polygonize the cube using cache
[more]list<unsigned char> * get_poly_index_list()
Returns a list containing indices pointing to the edge vectors that define the approximated polygon.
[more]vector<double> * get_normal(list<unsigned char >* poly_list)
Calculates the normal for a given polygon defined by poly_list
[more]static void init_rot()
Initialize the rotation group of the cube
[more]static void init_edge_vec(double edge_length)
Initialize the edge_vec using the given edge_length


Documentation

Cube render helper class. Class for a cube in the rasterized 3-dim space which is used to interpolate the approximated surface of the hyperspace. This is done by use of permutations that operate on the cube's corner vertices.
o Cube(int i)
Constructor

o Cube(int i, double a, double b, double c)
Alternative Constructor setting up origin vector

oint in_count
Count how many vertices are prisoners

ovector<double> v
Saves the vertex at the origin of the cube

ovector<bool> in
In cache

ovector<double> norm
Saves normal vector of approximated plane

olist<vector<double> > pol
The approximated polygon

ovoid polygonize(list<unsigned char >* poly_list, vector<double>* norm)
Polygonize the cube using cache

olist<unsigned char> * get_poly_index_list()
Returns a list containing indices pointing to the edge vectors that define the approximated polygon. It is used for creating the cache

ovector<double> * get_normal(list<unsigned char >* poly_list)
Calculates the normal for a given polygon defined by poly_list

ostatic void init_rot()
Initialize the rotation group of the cube

ostatic void init_edge_vec(double edge_length)
Initialize the edge_vec using the given edge_length


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.