| 1 |
|
|---|
| 2 |
|
|---|
| 3 | //////////////////////////////////////////////////////////////
|
|---|
| 4 |
|
|---|
| 5 | Test the basic functionality of G4Axis2Placement3D
|
|---|
| 6 |
|
|---|
| 7 | G4Axis2Placement3D (1,1,1) (1,2,3) (-1,0,0)
|
|---|
| 8 | coordinate vectors:
|
|---|
| 9 | p[1]: (-0.963624,0.14825,0.222375)
|
|---|
| 10 | p[2]: (-2.22532e-17,-0.83205,0.5547)
|
|---|
| 11 | p[3]: (0.267261,0.534522,0.801784)
|
|---|
| 12 | p[1].p[2]: -1.64663e-18
|
|---|
| 13 | p[3]-(p[1]xp[2]): (0,0,0)
|
|---|
| 14 | coordinate vectors computed from the transformation:
|
|---|
| 15 | p[1]: (0.0363759,1.14825,1.22237)
|
|---|
| 16 | p[2]: (1,0.16795,1.5547)
|
|---|
| 17 | p[3]: (1.26726,1.53452,1.80178)
|
|---|
| 18 | coordinate vectors in placement coordinate system:
|
|---|
| 19 | (1,-1.01718e-16,-4.68782e-17)
|
|---|
| 20 | (-1.40214e-16,1,-1.59893e-16)
|
|---|
| 21 | (-2.22397e-17,2.18196e-17,1)
|
|---|
| 22 | G4Axis2Placement3D (-1,1,1) (-1,2,3) (1,0,0)
|
|---|
| 23 | coordinate vectors:
|
|---|
| 24 | p[1]: (0.963624,0.14825,0.222375)
|
|---|
| 25 | p[2]: (-2.22532e-17,0.83205,-0.5547)
|
|---|
| 26 | p[3]: (-0.267261,0.534522,0.801784)
|
|---|
| 27 | p[1].p[2]: 1.64663e-18
|
|---|
| 28 | p[3]-(p[1]xp[2]): (0,0,0)
|
|---|
| 29 | coordinate vectors computed from the transformation:
|
|---|
| 30 | p[1]: (-0.0363759,1.14825,1.22237)
|
|---|
| 31 | p[2]: (-1,1.83205,0.4453)
|
|---|
| 32 | p[3]: (-1.26726,1.53452,1.80178)
|
|---|
| 33 | coordinate vectors in placement coordinate system:
|
|---|
| 34 | (1,2.30935e-17,-5.51181e-17)
|
|---|
| 35 | (-1.36921e-16,1,-8.6438e-17)
|
|---|
| 36 | (-7.41323e-18,0,1)
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | //////////////////////////////////////////////////////////////
|
|---|
| 40 |
|
|---|
| 41 | Test the basic functionality of G4Line
|
|---|
| 42 |
|
|---|
| 43 | G4Line (2,3,4) (-1,-1,-1)
|
|---|
| 44 | GetStartPoint : (12,13,14)
|
|---|
| 45 | GetEndPoint : (-8,-7,-6)
|
|---|
| 46 | GetPStartPoint : -10
|
|---|
| 47 | GetPEndPoint : 10
|
|---|
| 48 | GetPMax : -1
|
|---|
| 49 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 50 | u : -4.27856 p: (6.27856,7.27856,8.27856) u2: -4.27856
|
|---|
| 51 | u : -2.67336 p: (4.67336,5.67336,6.67336) u2: -2.67336
|
|---|
| 52 | u : 8.85978 p: (-6.85978,-5.85978,-4.85978) u2: 8.85978
|
|---|
| 53 | u : -4.42038 p: (6.42038,7.42038,8.42038) u2: -4.42038
|
|---|
| 54 | u : -6.3318 p: (8.3318,9.3318,10.3318) u2: -6.3318
|
|---|
| 55 | BBox: ((-8,-7,-6), (12,13,14))
|
|---|
| 56 | BBox from random points: ((-8,-7,-6), (12,13,14))
|
|---|
| 57 | empty space around it when put in BBox:
|
|---|
| 58 | min x: 0 max x: 0
|
|---|
| 59 | min y: 0 max y: 0
|
|---|
| 60 | min z: 0 max z: 0
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | //////////////////////////////////////////////////////////////
|
|---|
| 64 |
|
|---|
| 65 | Test the basic functionality of G4CircularCurve
|
|---|
| 66 |
|
|---|
| 67 | G4CircularCurve with radius=5
|
|---|
| 68 | GetStartPoint : (-3.81812,1.74125,2.11187)
|
|---|
| 69 | GetEndPoint : (-3.81812,1.74125,2.11187)
|
|---|
| 70 | GetPStartPoint : 0
|
|---|
| 71 | GetPEndPoint : 0
|
|---|
| 72 | GetPMax : 6.28319
|
|---|
| 73 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 74 | u : 0.136425 p: (-3.77335,1.16856,2.47875) u2: 0.136425
|
|---|
| 75 | u : 4.10553 p: (3.74774,3.99467,-1.91236) u2: 4.10553
|
|---|
| 76 | u : 2.60277 p: (5.13545,-1.77097,1.46883) u2: 2.60277
|
|---|
| 77 | u : 0.576939 p: (-3.03824,-0.647988,3.44474) u2: 0.576939
|
|---|
| 78 | u : 3.5896 p: (5.34263,2.134,-1.20354) u2: 3.5896
|
|---|
| 79 | BBox: ((-3.81812,-3.22577,-1.98807), (5.81812,5.22577,3.98807))
|
|---|
| 80 | BBox from random points: ((-3.81812,-3.22576,-1.98807), (5.81774,5.22577,3.98807))
|
|---|
| 81 | empty space around it when put in BBox:
|
|---|
| 82 | min x: 0 max x: 0.000379819
|
|---|
| 83 | min y: 1.26099e-05 max y: 8.74302e-08
|
|---|
| 84 | min z: 1.15363e-06 max z: 1.91286e-06
|
|---|
| 85 | G4CircularCurve again
|
|---|
| 86 | GetStartPoint : (-2.40693,-1.4176,3.74737)
|
|---|
| 87 | GetEndPoint : (4.40693,-2.46588,2.17495)
|
|---|
| 88 | GetPStartPoint : 0.785398
|
|---|
| 89 | GetPEndPoint : 2.35619
|
|---|
| 90 | GetPMax : 6.28319
|
|---|
| 91 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 92 | u : 1.42586 p: (0.304139,-3.00958,3.90501) u2: 1.42586
|
|---|
| 93 | u : 1.21713 p: (-0.668683,-2.64606,3.98693) u2: 1.21713
|
|---|
| 94 | u : 0.893037 p: (-2.0212,-1.77595,3.8577) u2: 0.893037
|
|---|
| 95 | u : 1.9365 p: (2.72301,-3.15022,3.19248) u2: 1.9365
|
|---|
| 96 | u : 1.28862 p: (-0.34158,-2.78933,3.97341) u2: 1.28862
|
|---|
| 97 | BBox: ((-2.40693,-3.22577,2.17495), (4.40693,-1.4176,3.98807))
|
|---|
| 98 | BBox from random points: ((-2.40693,-3.22577,2.17495), (4.40693,-1.4176,3.98805))
|
|---|
| 99 | empty space around it when put in BBox:
|
|---|
| 100 | min x: 0 max x: 0
|
|---|
| 101 | min y: 5.59189e-07 max y: 0
|
|---|
| 102 | min z: 0 max z: 2.0537e-05
|
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 | //////////////////////////////////////////////////////////////
|
|---|
| 106 |
|
|---|
| 107 | Test the basic functionality of G4Ellipse
|
|---|
| 108 |
|
|---|
| 109 | G4Ellipse 2 10
|
|---|
| 110 | GetStartPoint : (-0.927248,1.2965,1.44475)
|
|---|
| 111 | GetEndPoint : (-0.927248,1.2965,1.44475)
|
|---|
| 112 | GetPStartPoint : 0
|
|---|
| 113 | GetPEndPoint : 0
|
|---|
| 114 | GetPMax : 6.28319
|
|---|
| 115 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 116 | u : 4.22958 p: (1.89475,8.23178,-4.11944) u2: 4.22958
|
|---|
| 117 | u : 4.46726 p: (1.46771,8.99981,-4.48911) u2: 4.46726
|
|---|
| 118 | u : 0.483406 p: (-0.706418,-2.60482,3.97202) u2: 0.483406
|
|---|
| 119 | u : 3.64023 p: (2.69257,4.71875,-2.04335) u2: 3.64023
|
|---|
| 120 | u : 2.67925 p: (2.72491,-2.97668,3.07615) u2: 2.67925
|
|---|
| 121 | BBox: ((-0.927248,-7.32578,-4.5648), (2.92725,9.32578,6.5648))
|
|---|
| 122 | BBox from random points: ((-0.927248,-7.32564,-4.5648), (2.92722,9.32578,6.5648))
|
|---|
| 123 | empty space around it when put in BBox:
|
|---|
| 124 | min x: 0 max x: 3.20321e-05
|
|---|
| 125 | min y: 0.000142599 max y: 3.90136e-06
|
|---|
| 126 | min z: 7.72637e-06 max z: 5.0979e-08
|
|---|
| 127 | G4Ellipse again
|
|---|
| 128 | GetStartPoint : (-0.661903,5.46889,-1.4253)
|
|---|
| 129 | GetEndPoint : (-0.661903,5.46889,-1.4253)
|
|---|
| 130 | GetPStartPoint : 100
|
|---|
| 131 | GetPEndPoint : 125.133
|
|---|
| 132 | GetPMax : 6.28319
|
|---|
| 133 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 134 | u : 110.484 p: (2.66472,4.93633,-2.17913) u2: 110.484
|
|---|
| 135 | u : 110.17 p: (2.88337,2.47568,-0.611578) u2: 110.17
|
|---|
| 136 | u : 103.125 p: (2.64594,-3.58164,3.50578) u2: 103.125
|
|---|
| 137 | u : 109.257 p: (2.47552,-4.57961,4.2279) u2: 109.257
|
|---|
| 138 | u : 104.666 p: (2.05262,7.80789,-3.88947) u2: 104.666
|
|---|
| 139 | BBox: ((-0.927248,-7.32578,-4.5648), (2.92725,9.32578,6.5648))
|
|---|
| 140 | BBox from random points: ((-0.927211,-7.32578,-4.56447), (2.92725,9.32577,6.5648))
|
|---|
| 141 | empty space around it when put in BBox:
|
|---|
| 142 | min x: 3.71452e-05 max x: 1.60888e-06
|
|---|
| 143 | min y: 2.09198e-08 max y: 1.337e-05
|
|---|
| 144 | min z: 0.000329391 max z: 1.05371e-06
|
|---|
| 145 | G4Ellipse again
|
|---|
| 146 | GetStartPoint : (2.92274,1.27293,0.177131)
|
|---|
| 147 | GetEndPoint : (2.10783,7.63804,-3.79464)
|
|---|
| 148 | GetPStartPoint : 3.21
|
|---|
| 149 | GetPEndPoint : 4.1
|
|---|
| 150 | GetPMax : 6.28319
|
|---|
| 151 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 152 | u : 3.71184 p: (2.6223,5.24214,-2.36886) u2: 3.71184
|
|---|
| 153 | u : 3.67509 p: (2.65942,4.97611,-2.20388) u2: 3.67509
|
|---|
| 154 | u : 3.51463 p: (2.7947,3.75624,-1.43573) u2: 3.51463
|
|---|
| 155 | u : 3.34159 p: (2.88883,2.36239,-0.53787) u2: 3.34159
|
|---|
| 156 | u : 3.60771 p: (2.72165,4.47456,-1.89025) u2: 3.60771
|
|---|
| 157 | BBox: ((2.10783,1.27293,-3.79464), (2.92274,7.63804,0.177131))
|
|---|
| 158 | BBox from random points: ((2.10783,1.27293,-3.79464), (2.92274,7.63804,0.177131))
|
|---|
| 159 | empty space around it when put in BBox:
|
|---|
| 160 | min x: 0 max x: 0
|
|---|
| 161 | min y: 0 max y: 0
|
|---|
| 162 | min z: 0 max z: 0
|
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 | //////////////////////////////////////////////////////////////
|
|---|
| 166 |
|
|---|
| 167 | Test the basic functionality of G4Parabola
|
|---|
| 168 |
|
|---|
| 169 | G4Parabola 6
|
|---|
| 170 | GetStartPoint : (-57816.4,9894.45,12677.8)
|
|---|
| 171 | GetEndPoint : (-57816.4,7897.53,14009.1)
|
|---|
| 172 | GetPStartPoint : -100
|
|---|
| 173 | GetPEndPoint : 100
|
|---|
| 174 | GetPMax : -1
|
|---|
| 175 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 176 | u : -2.48322 p: (-34.6526,31.279,-7.30182) u2: -2.48322
|
|---|
| 177 | u : 54.1079 p: (-16926,2064.91,4267.39) u2: 54.1079
|
|---|
| 178 | u : 89.8802 p: (-46706.6,6289.36,11377.9) u2: 89.8802
|
|---|
| 179 | u : 62.5503 p: (-22620.3,2856.67,5637.67) u2: 62.5503
|
|---|
| 180 | u : 96.561 p: (-53908.2,7330.6,13084.3) u2: 96.561
|
|---|
| 181 | BBox: ((-57816.4,7897.53,12677.8), (-57816.4,9894.45,14009.1))
|
|---|
| 182 | BBox from random points: ((-57816.4,-26.9281,-7.28275), (0.987966,9894.45,14009.1))
|
|---|
| 183 | empty space around it when put in BBox:
|
|---|
| 184 | min x: 0 max x: -57817.4
|
|---|
| 185 | min y: -7924.46 max y: 0
|
|---|
| 186 | min z: -12685.1 max z: 0
|
|---|
| 187 | G4Parabola again
|
|---|
| 188 | GetStartPoint : (-4.78174,11.8741,-4.32215)
|
|---|
| 189 | GetEndPoint : (-577.174,-9.89612,200.989)
|
|---|
| 190 | GetPStartPoint : -1
|
|---|
| 191 | GetPEndPoint : 10
|
|---|
| 192 | GetPMax : -1
|
|---|
| 193 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 194 | u : 4.9496 p: (-140.644,-26.6284,66.6337) u2: 4.9496
|
|---|
| 195 | u : 0.517513 p: (-0.548465,-3.92894,4.80211) u2: 0.517513
|
|---|
| 196 | u : 6.91181 p: (-275.212,-25.5175,110.749) u2: 6.91181
|
|---|
| 197 | u : 3.16874 p: (-57.054,-21.7072,35.4895) u2: 3.16874
|
|---|
| 198 | u : -0.473277 p: (-0.295062,5.92473,-1.85146) u2: -0.473277
|
|---|
| 199 | BBox: ((-577.174,-9.89612,-4.32215), (-4.78174,11.8741,200.989))
|
|---|
| 200 | BBox from random points: ((-577.174,-27.019,-4.32215), (0.999914,11.8741,200.989))
|
|---|
| 201 | empty space around it when put in BBox:
|
|---|
| 202 | min x: 0 max x: -5.78166
|
|---|
| 203 | min y: -17.1228 max y: 0
|
|---|
| 204 | min z: 0 max z: 0
|
|---|
| 205 | G4Parabola again
|
|---|
| 206 | GetStartPoint : (-221.25,97.0969,11.0188)
|
|---|
| 207 | GetEndPoint : (-149.383,75.0574,1.75616)
|
|---|
| 208 | GetPStartPoint : -6.2
|
|---|
| 209 | GetPEndPoint : -5.1
|
|---|
| 210 | GetPMax : -1
|
|---|
| 211 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 212 | u : -5.62865 p: (-182.176,85.3808,5.80475) u2: -5.62865
|
|---|
| 213 | u : -5.33717 p: (-163.695,79.6272,3.4802) u2: -5.33717
|
|---|
| 214 | u : -5.78209 p: (-192.298,88.4701,7.11942) u2: -5.78209
|
|---|
| 215 | u : -5.90628 p: (-200.691,91.0012,8.22952) u2: -5.90628
|
|---|
| 216 | u : -5.73482 p: (-189.151,87.5139,6.70771) u2: -5.73482
|
|---|
| 217 | BBox: ((-221.25,75.0574,1.75616), (-149.383,97.0969,11.0188))
|
|---|
| 218 | BBox from random points: ((-221.25,75.0574,1.75616), (-149.383,97.0969,11.0188))
|
|---|
| 219 | empty space around it when put in BBox:
|
|---|
| 220 | min x: 0 max x: 0
|
|---|
| 221 | min y: 0 max y: 0
|
|---|
| 222 | min z: 0 max z: 0
|
|---|
| 223 |
|
|---|
| 224 |
|
|---|
| 225 | //////////////////////////////////////////////////////////////
|
|---|
| 226 |
|
|---|
| 227 | Test the basic functionality of G4Hyperbola
|
|---|
| 228 |
|
|---|
| 229 | G4Hyperbola 5 3
|
|---|
| 230 | GetStartPoint : (-17.1267,12.8419,-0.852373)
|
|---|
| 231 | GetEndPoint : (-17.1267,-5.26447,11.2185)
|
|---|
| 232 | GetPStartPoint : -2
|
|---|
| 233 | GetPEndPoint : 2
|
|---|
| 234 | GetPMax : -1
|
|---|
| 235 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 236 | u : -0.159259 p: (-3.87935,2.14989,1.85986) u2: -0.159259
|
|---|
| 237 | u : 1.51344 p: (-10.4731,-2.62931,7.2439) u2: 1.51344
|
|---|
| 238 | u : 0.63303 p: (-4.81617,0.206987,3.4674) u2: 0.63303
|
|---|
| 239 | u : -0.115769 p: (-3.85044,2.03584,1.92625) u2: -0.115769
|
|---|
| 240 | u : -1.07569 p: (-6.88503,5.44678,0.663824) u2: -1.07569
|
|---|
| 241 | BBox: ((-17.1267,-5.26447,-0.852373), (-17.1267,12.8419,11.2185))
|
|---|
| 242 | BBox from random points: ((-17.1267,-5.26447,-0.852373), (-3.8182,12.8419,11.2185))
|
|---|
| 243 | empty space around it when put in BBox:
|
|---|
| 244 | min x: 0 max x: -13.3085
|
|---|
| 245 | min y: 0 max y: 0
|
|---|
| 246 | min z: 0 max z: 0
|
|---|
| 247 | G4Hyperbola again
|
|---|
| 248 | GetStartPoint : (-6.43475,-0.789672,4.67136)
|
|---|
| 249 | GetEndPoint : (-17.1267,-5.26447,11.2185)
|
|---|
| 250 | GetPStartPoint : 1
|
|---|
| 251 | GetPEndPoint : 2
|
|---|
| 252 | GetPMax : -1
|
|---|
| 253 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 254 | u : 1.10485 p: (-7.07045,-1.11262,5.09856) u2: 1.10485
|
|---|
| 255 | u : 1.52051 p: (-10.547,-2.6601,7.28907) u2: 1.52051
|
|---|
| 256 | u : 1.86711 p: (-14.958,-4.42656,9.93705) u2: 1.86711
|
|---|
| 257 | u : 1.10619 p: (-7.07913,-1.11689,5.1043) u2: 1.10619
|
|---|
| 258 | u : 1.33626 p: (-8.79916,-1.91309,6.20845) u2: 1.33626
|
|---|
| 259 | BBox: ((-17.1267,-5.26447,4.67136), (-6.43475,-0.789672,11.2185))
|
|---|
| 260 | BBox from random points: ((-17.1267,-5.26447,4.67136), (-6.43475,-0.789672,11.2185))
|
|---|
| 261 | empty space around it when put in BBox:
|
|---|
| 262 | min x: 0 max x: 0
|
|---|
| 263 | min y: 0 max y: 0
|
|---|
| 264 | min z: 0 max z: 0
|
|---|
| 265 | G4Hyperbola again
|
|---|
| 266 | GetStartPoint : (-6.43475,5.07729,0.760058)
|
|---|
| 267 | GetEndPoint : (-3.81812,1.74125,2.11187)
|
|---|
| 268 | GetPStartPoint : -1
|
|---|
| 269 | GetPEndPoint : 0
|
|---|
| 270 | GetPMax : -1
|
|---|
| 271 | u -> GetPoint() -> p -> GetPPoint() -> u2
|
|---|
| 272 | u : -0.875132 p: (-5.78391,4.51785,0.916074) u2: -0.875132
|
|---|
| 273 | u : -0.186876 p: (-3.9025,2.22342,1.81855) u2: -0.186876
|
|---|
| 274 | u : -0.629993 p: (-4.8063,3.57194,1.22081) u2: -0.629993
|
|---|
| 275 | u : -0.624731 p: (-4.78933,3.55353,1.22743) u2: -0.624731
|
|---|
| 276 | u : -0.239157 p: (-3.95657,2.36523,1.74204) u2: -0.239157
|
|---|
| 277 | BBox: ((-6.43475,1.74125,0.760058), (-3.81812,5.07729,2.11187))
|
|---|
| 278 | BBox from random points: ((-6.43475,1.74125,0.760058), (-3.81812,5.07729,2.11187))
|
|---|
| 279 | empty space around it when put in BBox:
|
|---|
| 280 | min x: 0 max x: 0
|
|---|
| 281 | min y: 0 max y: 0
|
|---|
| 282 | min z: 0 max z: 0
|
|---|
| 283 |
|
|---|
| 284 |
|
|---|
| 285 | //////////////////////////////////////////////////////////////
|
|---|
| 286 |
|
|---|
| 287 | Test the basic functionality of Projection
|
|---|
| 288 |
|
|---|