96 :
G4VTwistSurface(a), fDx1(0.), fDx2(0.), fDy(0.), fDz(0.), fPhiTwist(0.),
97 fAlpha(0.), fTAlph(0.), fPhi(0.), fTheta(0.), fdeltaX(0.), fdeltaY(0.)
151 for (
auto i=0; i<2; ++i)
168 if (std::fabs(p.
z()) == 0.)
204 isvalid[0], 0, validate, &gp, &gv);
208 distance[0] = - (p.
z() / v.
z());
218 if (distance[0] >= 0) isvalid[0] =
true;
226 if (distance[0] >= 0) isvalid[0] =
true;
232 if (distance[0] >= 0) isvalid[0] =
true;
236 isvalid[0], 1, validate, &gp, &gv);
239 G4cerr <<
"ERROR - G4TwistTrapFlatSide::DistanceToSurface(p,v)" <<
G4endl;
276 for (
auto i=0; i<2; ++i)
296 distance[0] = std::fabs(p.
z());
297 xx.
set(p.
x(), p.
y(), 0);
332 if (xx.
x() < wmin + ctol)
335 if (xx.
x() <= wmin - ctol) isoutside =
true;
338 else if (xx.
x() > wmax - ctol)
341 if (xx.
x() >= wmax + ctol) isoutside =
true;
352 if (xx.
y() <=
fAxisMin[yaxis] - ctol) isoutside =
true;
355 else if (xx.
y() >
fAxisMax[yaxis] - ctol)
361 if (xx.
y() >=
fAxisMax[yaxis] + ctol) isoutside =
true;
370 areacode = tmpareacode;
385 else if (xx.
x() > wmax)
417 "Feature NOT implemented !");
462 message <<
"Feature NOT implemented !" <<
G4endl
464 <<
" fAxis[1] = " <<
fAxis[1];
484 direction = direction.
unit();
490 direction = direction.
unit();
496 direction = direction.
unit();
502 direction = direction.
unit();
510 message <<
"Feature NOT implemented !" <<
G4endl
512 <<
" fAxis[1] = " <<
fAxis[1];
534 for (
G4int i = 0 ; i<
n ; ++i )
536 y = -
fDy + i*(2*
fDy)/(n-1) ;
538 for (
G4int j = 0 ; j<
k ; ++j )
542 x = xmin + j*(xmax-
xmin)/(k-1) ;
544 nnode =
GetNode(i,j,k,n,iside) ;
547 xyz[nnode][0] = p.
x() ;
548 xyz[nnode][1] = p.
y() ;
549 xyz[nnode][2] = p.
z() ;
551 if ( i<n-1 && j<k-1 )
553 nface =
GetFace(i,j,k,n,iside) ;
558 * (
GetNode(i ,j ,k,n,iside)+1) ;
560 * (
GetNode(i+1,j ,k,n,iside)+1) ;
562 * (
GetNode(i+1,j+1,k,n,iside)+1) ;
564 * (
GetNode(i ,j+1,k,n,iside)+1) ;
569 * (
GetNode(i ,j ,k,n,iside)+1) ;
571 * (
GetNode(i ,j+1,k,n,iside)+1) ;
573 * (
GetNode(i+1,j+1,k,n,iside)+1) ;
575 * (
GetNode(i+1,j ,k,n,iside)+1) ;