test-block.cc

use higher level primitive euler::solid_t::block, which uses translational sweeping, to construct a cube.

Author:
Xianming Chen
Computer Science Department
University of Utah
Date:
17 Aug 2006
Copyright (c) 2006, University of Utah
00001 /**
00002  *\file         test-block.cc
00003  *
00004  *\brief        use higher level primitive euler::solid_t::block to construct a cube.
00005  *
00006  *\example      test-block.cc
00007  *
00008  *              use higher level primitive euler::solid_t::block, which uses \em translational \em sweeping, to construct a cube.
00009  *
00010  *
00011  *\author       Xianming Chen\n
00012  *              Computer Science Department\n
00013  *              University of Utah
00014  *
00015  *\date         17 Aug 2006\n
00016  *              Copyright (c) 2006, University of Utah
00017  */
00018 
00019 
00020 #include "euler.h"
00021 #include "print.h"
00022 #include <fstream>
00023 
00024 using namespace euler;
00025 
00026 int main()
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 }
00036 
00037 

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