50 :
TShape (name, title,material)
72 const Int_t numPoints = 8;
82 points[ 0] = -
fDx ; points[ 1] = -
fDy ; points[ 2] = -
fDz;
83 points[ 3] = -
fDx ; points[ 4] =
fDy ; points[ 5] = -
fDz;
84 points[ 6] =
fDx ; points[ 7] =
fDy ; points[ 8] = -
fDz;
85 points[ 9] =
fDx ; points[10] = -
fDy ; points[11] = -
fDz;
86 points[12] = -
fDx ; points[13] = -
fDy ; points[14] =
fDz;
87 points[15] = -
fDx ; points[16] =
fDy ; points[17] =
fDz;
88 points[18] =
fDx ; points[19] =
fDy ; points[20] =
fDz;
89 points[21] =
fDx ; points[22] = -
fDy ; points[23] =
fDz;
118 if (buffer.
SetRawSizes(nbPnts, nbPnts*3, nbSegs, nbSegs*3, nbPols, nbPols*6)) {
virtual ~TBRIK()
BRIK shape default destructor.
virtual void SetPoints(Double_t *points) const
Create BRIK points.
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections) const
Get buffer 3D.
virtual void FillBuffer3D(TBuffer3D &buffer, Int_t reqSections) const
We have to set kRawSize (unless already done) to allocate buffer space before kRaw can be filled...
void SetSectionsValid(UInt_t mask)
Int_t ShapeDistancetoPrimitive(Int_t numPoints, Int_t px, Int_t py)
Distance to primitive.
This is the base class for all geometry shapes.
void TransformPoints(Double_t *points, UInt_t NbPnts) const
Transform points (LocalToMaster)
Int_t GetBasicColor() const
Get basic color.
Bool_t SetRawSizes(UInt_t reqPnts, UInt_t reqPntsCapacity, UInt_t reqSegs, UInt_t reqSegsCapacity, UInt_t reqPols, UInt_t reqPolsCapacity)
Set kRaw tessellation section of buffer with supplied sizes.
Generic 3D primitive description class.
virtual void Sizeof3D() const
Return total X3D needed by TNode::ls (when called with option "x")
A box with faces perpendicular to the axes.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a BRIK.
Bool_t SectionsValid(UInt_t mask) const