Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoFacet Class Reference

Definition at line 20 of file TGeoTessellated.h.

Public Member Functions

 TGeoFacet ()
 
 TGeoFacet (int i0, int i1, int i2)
 
 TGeoFacet (int i0, int i1, int i2, int i3)
 
void Flip ()
 
int GetNvert () const
 
bool IsNeighbour (const TGeoFacet &other, bool &flip) const
 Check if a connected neighbour facet has compatible normal.
 
int operator[] (int ivert) const
 

Static Public Member Functions

static int CompactFacet (Vertex_t *vert, int nvertices)
 Compact consecutive equal vertices.
 

Private Types

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

Private Member Functions

void SetVertices (int nvert=0, int i0=-1, int i1=-1, int i2=-1, int i3=-1)
 

Private Attributes

int fIvert [4] = {0, 0, 0, 0}
 
int fNvert = 0
 

#include <TGeoTessellated.h>

Member Typedef Documentation

◆ Vertex_t

Definition at line 21 of file TGeoTessellated.h.

◆ VertexVec_t

Definition at line 22 of file TGeoTessellated.h.

Constructor & Destructor Documentation

◆ TGeoFacet() [1/3]

TGeoFacet::TGeoFacet ( )
inline

Definition at line 39 of file TGeoTessellated.h.

◆ TGeoFacet() [2/3]

TGeoFacet::TGeoFacet ( int  i0,
int  i1,
int  i2 
)
inline

Definition at line 40 of file TGeoTessellated.h.

◆ TGeoFacet() [3/3]

TGeoFacet::TGeoFacet ( int  i0,
int  i1,
int  i2,
int  i3 
)
inline

Definition at line 41 of file TGeoTessellated.h.

Member Function Documentation

◆ CompactFacet()

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

Compact consecutive equal vertices.

Definition at line 43 of file TGeoTessellated.cxx.

◆ Flip()

void TGeoFacet::Flip ( )
inline

Definition at line 47 of file TGeoTessellated.h.

◆ GetNvert()

int TGeoFacet::GetNvert ( ) const
inline

Definition at line 45 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 65 of file TGeoTessellated.cxx.

◆ operator[]()

int TGeoFacet::operator[] ( int  ivert) const
inline

Definition at line 43 of file TGeoTessellated.h.

◆ SetVertices()

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

Definition at line 29 of file TGeoTessellated.h.

Member Data Documentation

◆ fIvert

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

Definition at line 25 of file TGeoTessellated.h.

◆ fNvert

int TGeoFacet::fNvert = 0
private

Definition at line 26 of file TGeoTessellated.h.

Libraries for TGeoFacet:

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