54 constructorParams[0] = Pt1;
55 constructorParams[1] = Pt2;
56 constructorParams[2] = Pt3;
57 constructorParams[3] = Pt4;
58 constructorParams[4] = Pt5;
59 constructorParams[5] = Pt6;
60 constructorParams[6] = Pt7;
61 constructorParams[7] = Pt8;
78 for (
size_t i=0; i<8; ++i) { constructorParams[i]= rhs.constructorParams[i]; }
86 if (
this == &rhs) {
return *
this; }
94 Rotation= rhs.Rotation;
95 for (
size_t i=0; i<8; ++i) { constructorParams[i]= rhs.constructorParams[i]; }
101void G4BREPSolidBox::InitializeBox()
107 PVec[0] = constructorParams[0];
108 PVec[1] = constructorParams[1];
109 PVec[2] = constructorParams[2];
110 PVec[3] = constructorParams[3];
113 PVec[2] = constructorParams[5];
114 PVec[3] = constructorParams[4];
117 PVec[0] = constructorParams[1];
118 PVec[1] = constructorParams[5];
119 PVec[2] = constructorParams[6];
120 PVec[3] = constructorParams[2];
123 PVec[0] = constructorParams[2];
124 PVec[1] = constructorParams[6];
125 PVec[2] = constructorParams[7];
126 PVec[3] = constructorParams[3];
129 PVec[0] = constructorParams[0];
130 PVec[1] = constructorParams[4];
131 PVec[2] = constructorParams[7];
132 PVec[3] = constructorParams[3];
135 PVec[0] = constructorParams[4];
136 PVec[1] = constructorParams[5];
137 PVec[2] = constructorParams[6];
138 PVec[3] = constructorParams[7];
155 if( (Point.
x() < min.
x() || Point.
x() > max.
x()) ||
156 (Point.
y() < min.
y() || Point.
y() > max.
y()) ||
157 (Point.
z() < min.
z() || Point.
z() > max.
z()) )
160 if( (Point.
x() > min.
x() && Point.
x() < max.
x())&&
161 (Point.
y() > min.
y() && Point.
y() < max.
y())&&
162 (Point.
z() > min.
z() && Point.
z() < max.
z()) )
179 <<
" Pt1: " << constructorParams[0]
180 <<
" Pt2: " << constructorParams[1]
181 <<
" Pt3: " << constructorParams[2]
182 <<
" Pt4: " << constructorParams[3]
183 <<
"\n Pt5: " << constructorParams[4]
184 <<
" Pt6: " << constructorParams[5]
185 <<
" Pt7: " << constructorParams[6]
186 <<
" Pt8: " << constructorParams[7]
187 <<
"\n-----------------------------------------------------------\n";
std::vector< G4Point3D > G4Point3DVector
HepGeom::Point3D< G4double > G4Point3D
EInside Inside(register const G4ThreeVector &Pt) const
std::ostream & StreamInfo(std::ostream &os) const
G4BREPSolidBox(const G4String &, const G4Point3D &, const G4Point3D &, const G4Point3D &, const G4Point3D &, const G4Point3D &, const G4Point3D &, const G4Point3D &, const G4Point3D &)
G4BREPSolidBox & operator=(const G4BREPSolidBox &rhs)
G4BREPSolid & operator=(const G4BREPSolid &rhs)
virtual std::ostream & StreamInfo(std::ostream &os) const
virtual void Initialize()
G4Point3D GetBoxMin() const
G4Point3D GetBoxMax() const