test-block.cc File Reference

use higher level primitive euler::solid_t::block to construct a cube. More...

#include "euler.h"
#include "print.h"
#include <fstream>

Go to the source code of this file.

Functions

int main ()


Detailed Description

use higher level primitive euler::solid_t::block to construct a cube.

Definition in file test-block.cc.


Function Documentation

int main  ) 
 

Examples:
test-block.cc, test-cube-with-hole-2.cc, test-cube-with-hole.cc, test-cube.cc, test-cylinder-2.cc, test-cylinder.cc, test-disk.cc, test-sphere.cc, and test-torus.cc.

Definition at line 26 of file test-block.cc.

References euler::solid_t::print_off_file().

00027 {
00028   solid_t *s = solid_t :: block( point_t(1.0f, 1.0f, 1.0f) );
00029   cout << s << endl;
00030 
00031   ofstream os("test-block.off", ios::out);
00032   s->print_off_file(os);
00033 
00034   return 0;
00035 }


Generated on Wed Aug 30 16:27:59 2006 for euler by  doxygen 1.4.6