FDH14Mesh.cc

Go to the documentation of this file.
00001 #include <esg/mesh/FDH14Mesh.h>
00002 
00003 using namespace esg;
00004 
00005 FDH14Mesh::FDH14Mesh(const float fdhMat[14][3], const float fdhVal[],
00006                      float ar, float br, float cr)
00007   : BoxMesh(ar, br, cr)
00008 {
00009     Solid* pOdpad;
00010 
00011     // BoxMesh is created in origin. Then we must move it to proper position
00012     translate(Vector3(-fdhVal[7], -fdhVal[8], -fdhVal[9]));
00013 
00014     for (register int i = 3; i < 7; i++) {
00015         pOdpad=cut(fdhMat[i][0], fdhMat[i][1], fdhMat[i][2], -fdhVal[i]);
00016         if (pOdpad) Delete_solid(&pOdpad);
00017         pOdpad=cut(fdhMat[i+7][0],fdhMat[i+7][1],fdhMat[i+7][2],-fdhVal[i+7]);
00018         if (pOdpad) Delete_solid(&pOdpad);
00019     }
00020 }

Generated on Wed Jun 28 12:24:29 2006 for esg by  doxygen 1.4.6