#include <G4NURBShexahedron.hh>
Inheritance diagram for G4NURBShexahedron:
Public Member Functions | |
G4NURBShexahedron (const G4ThreeVector Corners[8]) | |
const char * | Whoami () const |
Definition at line 42 of file G4NURBShexahedron.hh.
G4NURBShexahedron::G4NURBShexahedron | ( | const G4ThreeVector | Corners[8] | ) |
Definition at line 34 of file G4NURBShexahedron.cc.
References G4NURBS::CP(), G4NURBS::mpCtrlPts, and G4NURBS::To1d().
00035 : G4NURBS( 2, 2, // linear along U and V 00036 5, 4 ) // Square x polyline 00037 { 00038 // let's it Generate regular knots vector 00039 00040 CP(mpCtrlPts[To1d(0,0)] , c[0].x(), c[0].y(), c[0].z(), 1 ); 00041 CP(mpCtrlPts[To1d(1,0)] , c[1].x(), c[1].y(), c[1].z(), 1 ); 00042 CP(mpCtrlPts[To1d(2,0)] , c[1].x(), c[1].y(), c[1].z(), 1 ); 00043 CP(mpCtrlPts[To1d(3,0)] , c[0].x(), c[0].y(), c[0].z(), 1 ); 00044 CP(mpCtrlPts[To1d(4,0)] , c[0].x(), c[0].y(), c[0].z(), 1 ); 00045 00046 CP(mpCtrlPts[To1d(0,1)] , c[0].x(), c[0].y(), c[0].z(), 1 ); 00047 CP(mpCtrlPts[To1d(1,1)] , c[1].x(), c[1].y(), c[1].z(), 1 ); 00048 CP(mpCtrlPts[To1d(2,1)] , c[2].x(), c[2].y(), c[2].z(), 1 ); 00049 CP(mpCtrlPts[To1d(3,1)] , c[3].x(), c[3].y(), c[3].z(), 1 ); 00050 CP(mpCtrlPts[To1d(4,1)] , c[0].x(), c[0].y(), c[0].z(), 1 ); 00051 00052 CP(mpCtrlPts[To1d(0,2)] , c[4].x(), c[4].y(), c[4].z(), 1 ); 00053 CP(mpCtrlPts[To1d(1,2)] , c[5].x(), c[5].y(), c[5].z(), 1 ); 00054 CP(mpCtrlPts[To1d(2,2)] , c[6].x(), c[6].y(), c[6].z(), 1 ); 00055 CP(mpCtrlPts[To1d(3,2)] , c[7].x(), c[7].y(), c[7].z(), 1 ); 00056 CP(mpCtrlPts[To1d(4,2)] , c[4].x(), c[4].y(), c[4].z(), 1 ); 00057 00058 CP(mpCtrlPts[To1d(0,3)] , c[4].x(), c[4].y(), c[4].z(), 1 ); 00059 CP(mpCtrlPts[To1d(1,3)] , c[5].x(), c[5].y(), c[5].z(), 1 ); 00060 CP(mpCtrlPts[To1d(2,3)] , c[5].x(), c[5].y(), c[5].z(), 1 ); 00061 CP(mpCtrlPts[To1d(3,3)] , c[4].x(), c[4].y(), c[4].z(), 1 ); 00062 CP(mpCtrlPts[To1d(4,3)] , c[4].x(), c[4].y(), c[4].z(), 1 ); 00063 }
const char * G4NURBShexahedron::Whoami | ( | ) | const [virtual] |