57 fStatistics(1000000), fCubVolEpsilon(0.001), fAreaAccuracy(-1.)
68 fStatistics(1000000), fCubVolEpsilon(0.001), fAreaAccuracy(-1.)
101 if (&source ==
this) {
return *
this; }
133 **sourceFace = source.
faces;
136 *face = (*sourceFace)->
Clone();
262 faceDistance, faceDistFromSurface,
263 faceNormal, faceAllBehind ) )
268 if (faceDistance < distance)
270 distance = faceDistance;
271 distFromSurface = faceDistFromSurface;
273 if (distFromSurface <= 0) {
return 0; }
319 faceDistance, faceDistFromSurface,
320 faceNormal, faceAllBehind ) )
325 if ( (distance <
kInfinity) || (!faceAllBehind) ) { allBehind =
false; }
326 if (faceDistance < distance)
328 distance = faceDistance;
329 distFromSurface = faceDistFromSurface;
332 if (distFromSurface <= 0.) {
break; }
339 if (distFromSurface <= 0.)
350 *validNorm = allBehind;
357 if (calcNorm) { *validNorm =
false; }
379 const G4bool outgoing )
const
385 G4double distance = (*face)->Distance( p, outgoing );
386 if (distance < best) { best = distance; }
410 yMax(0,1,0), yMin(0,-1,0),
411 zMax(0,0,1), zMin(0,0,-1);
413 { &xMin, &xMax, &yMin, &yMax, &zMin, &zMax };
425 G4double testFace = (*face)->Extent( **axis );
426 if (testFace > *answer) { *answer = testFace; }
428 while( --axis, --answer >= answers );
433 -answers[2], answers[3],
434 -answers[4], answers[5] );
452 os <<
"-----------------------------------------------------------\n"
453 <<
" *** Dump for solid - " <<
GetName() <<
" ***\n"
454 <<
" ===================================================\n"
455 <<
" Solid type: G4VCSGfaceted\n"
457 <<
" number of faces: " <<
numFace <<
"\n"
458 <<
"-----------------------------------------------------------\n";
594 std::vector<G4double> areas;
601 areas.push_back(result);
610 Achose1=0.; Achose2=0.;
616 if(chose>=Achose1 && chose<Achose2)
619 point= (*face1)->GetPointOnFace();