G4NURBShexahedron Class Reference

#include <G4NURBShexahedron.hh>

Inheritance diagram for G4NURBShexahedron:

G4NURBS G4Visible

Public Member Functions

 G4NURBShexahedron (const G4ThreeVector Corners[8])
const char * Whoami () const

Detailed Description

Definition at line 42 of file G4NURBShexahedron.hh.


Constructor & Destructor Documentation

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 }


Member Function Documentation

const char * G4NURBShexahedron::Whoami (  )  const [virtual]

Implements G4NURBS.

Definition at line 65 of file G4NURBShexahedron.cc.

00066 {
00067   return "Hexahedron";
00068 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:46 2013 for Geant4 by  doxygen 1.4.7