Logo ROOT  
Reference Guide
TGeoFacet Class Reference

Definition at line 19 of file TGeoTessellated.h.

Public Member Functions

 TGeoFacet ()
 
 TGeoFacet (const TGeoFacet &other)
 
 TGeoFacet (const Vertex_t &pt0, const Vertex_t &pt1, const Vertex_t &pt2)
 
 TGeoFacet (const Vertex_t &pt0, const Vertex_t &pt1, const Vertex_t &pt2, const Vertex_t &pt3)
 
 TGeoFacet (VertexVec_t *vertices, int nvert, int i0=-1, int i1=-1, int i2=-1, int i3=-1)
 
 ~TGeoFacet ()
 
bool Check () const
 
Vertex_t ComputeNormal (bool &degenerated) const
 
void Flip ()
 
int GetNvert () const
 
Vertex_tGetVertex (int ivert)
 
const Vertex_tGetVertex (int ivert) const
 
int GetVertexIndex (int ivert) const
 
bool IsNeighbour (const TGeoFacet &other, bool &flip) const
 Check if a connected neighbour facet has compatible normal. More...
 
const TGeoFacetoperator= (const TGeoFacet &other)
 
void SetVertices (VertexVec_t *vertices, int nvert=0, int i0=-1, int i1=-1, int i2=-1, int i3=-1)
 

Static Public Member Functions

static int CompactFacet (Vertex_t *vert, int nvertices)
 

Private Types

using Vertex_t = Tessellated::Vertex_t
 
using VertexVec_t = Tessellated::VertexVec_t
 

Private Attributes

int fIvert [4] = {0, 0, 0, 0}
 
int fNvert = 0
 array of vertices More...
 
bool fShared = false
 
VertexVec_tfVertices = nullptr
 

#include <TGeoTessellated.h>

Member Typedef Documentation

◆ Vertex_t

Definition at line 26 of file TGeoTessellated.h.

◆ VertexVec_t

Definition at line 27 of file TGeoTessellated.h.

Constructor & Destructor Documentation

◆ TGeoFacet() [1/5]

TGeoFacet::TGeoFacet ( )
inline

Definition at line 36 of file TGeoTessellated.h.

◆ TGeoFacet() [2/5]

TGeoFacet::TGeoFacet ( const TGeoFacet other)

Definition at line 52 of file TGeoTessellated.cxx.

◆ ~TGeoFacet()

TGeoFacet::~TGeoFacet ( )
inline

Definition at line 39 of file TGeoTessellated.h.

◆ TGeoFacet() [3/5]

TGeoFacet::TGeoFacet ( const Vertex_t pt0,
const Vertex_t pt1,
const Vertex_t pt2 
)
inline

Definition at line 48 of file TGeoTessellated.h.

◆ TGeoFacet() [4/5]

TGeoFacet::TGeoFacet ( const Vertex_t pt0,
const Vertex_t pt1,
const Vertex_t pt2,
const Vertex_t pt3 
)
inline

Definition at line 58 of file TGeoTessellated.h.

◆ TGeoFacet() [5/5]

TGeoFacet::TGeoFacet ( VertexVec_t vertices,
int  nvert,
int  i0 = -1,
int  i1 = -1,
int  i2 = -1,
int  i3 = -1 
)
inline

Definition at line 68 of file TGeoTessellated.h.

Member Function Documentation

◆ Check()

bool TGeoFacet::Check ( ) const

Definition at line 103 of file TGeoTessellated.cxx.

◆ CompactFacet()

int TGeoFacet::CompactFacet ( Vertex_t vert,
int  nvertices 
)
static

Definition at line 135 of file TGeoTessellated.cxx.

◆ ComputeNormal()

Vertex_t TGeoFacet::ComputeNormal ( bool degenerated) const

Definition at line 75 of file TGeoTessellated.cxx.

◆ Flip()

void TGeoFacet::Flip ( )
inline

Definition at line 100 of file TGeoTessellated.h.

◆ GetNvert()

int TGeoFacet::GetNvert ( ) const
inline

Definition at line 92 of file TGeoTessellated.h.

◆ GetVertex() [1/2]

Vertex_t& TGeoFacet::GetVertex ( int  ivert)
inline

Definition at line 94 of file TGeoTessellated.h.

◆ GetVertex() [2/2]

const Vertex_t& TGeoFacet::GetVertex ( int  ivert) const
inline

Definition at line 95 of file TGeoTessellated.h.

◆ GetVertexIndex()

int TGeoFacet::GetVertexIndex ( int  ivert) const
inline

Definition at line 97 of file TGeoTessellated.h.

◆ IsNeighbour()

bool TGeoFacet::IsNeighbour ( const TGeoFacet other,
bool flip 
) const

Check if a connected neighbour facet has compatible normal.

Definition at line 157 of file TGeoTessellated.cxx.

◆ operator=()

const TGeoFacet & TGeoFacet::operator= ( const TGeoFacet other)

Definition at line 59 of file TGeoTessellated.cxx.

◆ SetVertices()

void TGeoFacet::SetVertices ( VertexVec_t vertices,
int  nvert = 0,
int  i0 = -1,
int  i1 = -1,
int  i2 = -1,
int  i3 = -1 
)
inline

Definition at line 76 of file TGeoTessellated.h.

Member Data Documentation

◆ fIvert

int TGeoFacet::fIvert[4] = {0, 0, 0, 0}
private

Definition at line 30 of file TGeoTessellated.h.

◆ fNvert

int TGeoFacet::fNvert = 0
private

array of vertices

Definition at line 32 of file TGeoTessellated.h.

◆ fShared

bool TGeoFacet::fShared = false
private

Definition at line 33 of file TGeoTessellated.h.

◆ fVertices

VertexVec_t* TGeoFacet::fVertices = nullptr
private

Definition at line 31 of file TGeoTessellated.h.

Libraries for TGeoFacet:
[legend]

The documentation for this class was generated from the following files: