G4NURBSbox Class Reference

#include <G4NURBSbox.hh>

Inheritance diagram for G4NURBSbox:

G4NURBS G4Visible

Public Member Functions

 G4NURBSbox (G4double DX, G4double DY, G4double DZ)
const char * Whoami () const

Detailed Description

Definition at line 44 of file G4NURBSbox.hh.


Constructor & Destructor Documentation

G4NURBSbox::G4NURBSbox ( G4double  DX,
G4double  DY,
G4double  DZ 
)

Definition at line 37 of file G4NURBSbox.cc.

References G4NURBS::CP(), and G4NURBS::mpCtrlPts.

00038   : G4NURBS  ( 2, 2,  // linear along U and V
00039                4, 5 ) // line with two 90 degrees folds along U
00040                       // rectangle along V (3 folds)
00041 {
00042   // let's it Generate regular knots vector
00043   // (note we are calling the second constructor)
00044 
00045   t_indCtrlPt i = 0;
00046 
00047   CP(mpCtrlPts[i++], DX, DY, DZ, 1 ); 
00048   CP(mpCtrlPts[i++], DX, DY, DZ, 1 ); 
00049   CP(mpCtrlPts[i++], DX, DY,-DZ, 1 ); 
00050   CP(mpCtrlPts[i++], DX, DY,-DZ, 1 ); 
00051 
00052   CP(mpCtrlPts[i++], DX, DY, DZ, 1 ); 
00053   CP(mpCtrlPts[i++],-DX, DY, DZ, 1 ); 
00054   CP(mpCtrlPts[i++],-DX, DY,-DZ, 1 ); 
00055   CP(mpCtrlPts[i++], DX, DY,-DZ, 1 ); 
00056 
00057   CP(mpCtrlPts[i++], DX,-DY, DZ, 1 ); 
00058   CP(mpCtrlPts[i++],-DX,-DY, DZ, 1 ); 
00059   CP(mpCtrlPts[i++],-DX,-DY,-DZ, 1 ); 
00060   CP(mpCtrlPts[i++], DX,-DY,-DZ, 1 ); 
00061 
00062   CP(mpCtrlPts[i++], DX,-DY, DZ, 1 ); 
00063   CP(mpCtrlPts[i++], DX,-DY, DZ, 1 ); 
00064   CP(mpCtrlPts[i++], DX,-DY,-DZ, 1 ); 
00065   CP(mpCtrlPts[i++], DX,-DY,-DZ, 1 ); 
00066 
00067   CP(mpCtrlPts[i++], DX, DY, DZ, 1 ); 
00068   CP(mpCtrlPts[i++], DX, DY, DZ, 1 ); 
00069   CP(mpCtrlPts[i++], DX, DY,-DZ, 1 ); 
00070   CP(mpCtrlPts[i++], DX, DY,-DZ, 1 ); 
00071 }


Member Function Documentation

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

Implements G4NURBS.

Definition at line 73 of file G4NURBSbox.cc.

00074 {
00075   return "Box (as a folded piece)";
00076 }


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