35 Hexagon(
double HalfHeight=0.005,
double Side=0.01,
double Signe=-1);
47 Hexagon(
const char* Infinite,
double Side=0.01,
double Signe=-1);
73 void SetPeriodicBoundary(
bool state=
true,
string TopBottPlaneBC=
"mirror");
74 virtual void SetTopBottomPlanesOpen();
75 virtual void SetSidePlanesOpen();
100 virtual void Translate(
double dx,
double dy,
double dz,
int count=0);
109 virtual void Rotate(
double phi,
double theta=0,
double psi=0,
double *center=0,
int count=0);
117 double GetVirtualSphereRadius();
120 virtual string Print();
127 Hexagon(
double HalfHeight,
double Side,
double Signe,
bool Infinite);
128 bool IsSameAxis(
Hexagon* hexagon);
Regular hexagon Shape of a given height.
Definition: Hexagon.hxx:21
Node allows to construct Union or Intersection of Shape.
Definition: Node.hxx:24
double fSide
length of Hexagon side.
Definition: Hexagon.hxx:131
double GetSide()
return the length of a hexagon side
Definition: Hexagon.hxx:59
double GetOrigin(int i)
returns the origin of the hexagon
Definition: Hexagon.hxx:61
double fHalfHeight
Half height of the Hexagon.
Definition: Hexagon.hxx:130
double * GetOrigin()
returns the origin of the hexagon
Definition: Hexagon.hxx:62
double * GetVirtualSphereCenter()
returns the center of a Sphere containing the Shape
Definition: Hexagon.hxx:118
bool IsCylinderInHexagon(Shape_ptr cylinder, Shape_ptr hexagon)
Definition: Hexagon.cxx:889
double GetHalfHeight()
return the 1/2 height of an hexagon
Definition: Hexagon.hxx:60
unsigned IsHexagon()
1 if Shape is a Hexagon
Definition: Hexagon.hxx:52
bool IsHexagonInTube(double Xh[2], Shape_ptr hexa, double Rmax, double Rmin=0, double *Xt=0)
Definition: Hexagon.cxx:755
bool IsHexagonInHexagon(double Xh1[2], Shape_ptr hexa1, Shape_ptr hexa2)
Definition: Hexagon.cxx:799
double GetWidth()
return the distance of 2 opposite hexagon sides
Definition: Hexagon.hxx:58