Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NURBSbox.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
//
27
// $Id$
28
//
29
//
30
// Olivier Crumeyrolle 12 September 1996
31
32
// Box builder implementation (KidBox)
33
// OC 060996
34
35
#include "
G4NURBSbox.hh
"
36
37
G4NURBSbox::G4NURBSbox
(
G4double
DX,
G4double
DY,
G4double
DZ)
38
:
G4NURBS
( 2, 2,
// linear along U and V
39
4, 5 )
// line with two 90 degrees folds along U
40
// rectangle along V (3 folds)
41
{
42
// let's it Generate regular knots vector
43
// (note we are calling the second constructor)
44
45
t_indCtrlPt
i = 0;
46
47
CP
(
mpCtrlPts
[i++], DX, DY, DZ, 1 );
48
CP
(
mpCtrlPts
[i++], DX, DY, DZ, 1 );
49
CP
(
mpCtrlPts
[i++], DX, DY,-DZ, 1 );
50
CP
(
mpCtrlPts
[i++], DX, DY,-DZ, 1 );
51
52
CP
(
mpCtrlPts
[i++], DX, DY, DZ, 1 );
53
CP
(
mpCtrlPts
[i++],-DX, DY, DZ, 1 );
54
CP
(
mpCtrlPts
[i++],-DX, DY,-DZ, 1 );
55
CP
(
mpCtrlPts
[i++], DX, DY,-DZ, 1 );
56
57
CP
(
mpCtrlPts
[i++], DX,-DY, DZ, 1 );
58
CP
(
mpCtrlPts
[i++],-DX,-DY, DZ, 1 );
59
CP
(
mpCtrlPts
[i++],-DX,-DY,-DZ, 1 );
60
CP
(
mpCtrlPts
[i++], DX,-DY,-DZ, 1 );
61
62
CP
(
mpCtrlPts
[i++], DX,-DY, DZ, 1 );
63
CP
(
mpCtrlPts
[i++], DX,-DY, DZ, 1 );
64
CP
(
mpCtrlPts
[i++], DX,-DY,-DZ, 1 );
65
CP
(
mpCtrlPts
[i++], DX,-DY,-DZ, 1 );
66
67
CP
(
mpCtrlPts
[i++], DX, DY, DZ, 1 );
68
CP
(
mpCtrlPts
[i++], DX, DY, DZ, 1 );
69
CP
(
mpCtrlPts
[i++], DX, DY,-DZ, 1 );
70
CP
(
mpCtrlPts
[i++], DX, DY,-DZ, 1 );
71
}
72
73
const
char
*
G4NURBSbox::Whoami
()
const
74
{
75
return
"Box (as a folded piece)"
;
76
}
G4NURBSbox.hh
G4double
double G4double
Definition:
G4Types.hh:64
G4NURBS
Definition:
G4NURBS.hh:52
G4NURBS::mpCtrlPts
t_CtrlPt * mpCtrlPts
Definition:
G4NURBS.hh:350
G4NURBS::CP
static void CP(G4NURBS::t_CtrlPt &rcp, t_Coord x, t_Coord y, t_Coord z, t_Coord w)
Definition:
G4NURBS.hh:520
G4NURBS::t_indCtrlPt
unsigned int t_indCtrlPt
Definition:
G4NURBS.hh:91
G4NURBSbox::G4NURBSbox
G4NURBSbox(G4double DX, G4double DY, G4double DZ)
Definition:
G4NURBSbox.cc:37
G4NURBSbox::Whoami
const char * Whoami() const
Definition:
G4NURBSbox.cc:73
geant4-v9.6.0
source
graphics_reps
src
G4NURBSbox.cc
Generated by
1.9.6