EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Three 3D vertices defining one of the facets in STL input file. More...
#include <EicRoot/blob/master/eic/cad/EicStlFacet.h>
Public Member Functions | |
EicStlFacet (EicStlVertex *const v1, EicStlVertex *const v2, EicStlVertex *const v3) | |
~EicStlFacet () | |
const EicStlKey * | key () const |
int | Calculate () |
void | SetCounter (unsigned counter) |
void | DecrementCounter (void) |
void | IncrementCounter (void) |
unsigned | GetCounter (void) const |
const vEntry * | vertices (void) const |
const TVector3 & | GetNormal (void) const |
void | SetEdge (unsigned iq, EicStlFacetEdge *edge) |
const EicStlFacetEdge * | edge (unsigned iq) const |
Public Attributes | |
std::vector< EicStlVertex * > | mVbuffer |
EicStlKey * | mKey |
TVector3 | mNormal |
vEntry * | mVertices |
EicStlFacetEdge * | mEdges [3] |
unsigned | mCounter |
Three 3D vertices defining one of the facets in STL input file.
Definition at line 24 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 24 of file EicStlFacet.h
EicStlFacet::EicStlFacet | ( | EicStlVertex *const | v1, |
EicStlVertex *const | v2, | ||
EicStlVertex *const | v3 | ||
) |
Main constructor
v1 | 1-st vertex |
v2 | 2-d vertex |
v3 | 3-d vertex |
Definition at line 13 of file EicStlFacet.cxx.
View newest version in sPHENIX GitHub at line 13 of file EicStlFacet.cxx
References mVbuffer.
|
inline |
Destructor; just need to clean up the keys
Definition at line 34 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 34 of file EicStlFacet.h
int EicStlFacet::Calculate | ( | void | ) |
Printout method; basically exploits EicStlVertex printout
Definition at line 21 of file EicStlFacet.cxx.
View newest version in sPHENIX GitHub at line 21 of file EicStlFacet.cxx
References EicStlKeyCompare(), EicStlVertex::GetMergedVertex(), GetVertexArrayKey(), it, EicStlVertex::key(), mKey, mNormal, mVbuffer, mVertices, and vtx().
Referenced by EicStlMediaGroup::CalculateFacets().
|
inline |
Definition at line 55 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 55 of file EicStlFacet.h
References mCounter.
Referenced by EicStlMediaGroup::CoupleFacetToAssembly().
|
inline |
Definition at line 65 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 65 of file EicStlFacet.h
Referenced by EicStlMediaGroup::CoupleFacetToAssembly(), EicCompositeShape::LocalFillBuffer3D(), and SetEdge().
|
inline |
Definition at line 57 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 57 of file EicStlFacet.h
References mCounter.
Referenced by EicStlMediaGroup::CoupleFacetToAssembly(), and EicStlMediaGroup::SplitIntoAssemblies().
|
inline |
Definition at line 60 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 60 of file EicStlFacet.h
References mNormal.
Referenced by EicStlMediaGroup::CoupleFacetToAssembly(), EicStlFactory::DumpTmpStlFile(), and EicStlMediaGroup::SplitIntoAssemblies().
|
inline |
Definition at line 56 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 56 of file EicStlFacet.h
References mCounter.
|
inline |
Access method; returns unique read-only STL key for this facet
Definition at line 45 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 45 of file EicStlFacet.h
References mKey.
Referenced by EicStlMediaGroup::CalculateFacets().
|
inline |
Definition at line 54 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 54 of file EicStlFacet.h
References mCounter.
Referenced by EicStlMediaGroup::CalculateFacets().
|
inline |
Definition at line 62 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 62 of file EicStlFacet.h
References edge(), and mEdges.
Referenced by EicStlMediaGroup::AllocateEdges().
|
inline |
Definition at line 59 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 59 of file EicStlFacet.h
References mVertices.
Referenced by EicStlMediaGroup::AllocateEdges(), EicStlMediaGroup::CalculateFacets(), and EicStlFactory::DumpTmpStlFile().
unsigned EicStlFacet::mCounter |
Definition at line 88 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 88 of file EicStlFacet.h
Referenced by DecrementCounter(), GetCounter(), IncrementCounter(), and SetCounter().
EicStlFacetEdge* EicStlFacet::mEdges[3] |
Definition at line 84 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 84 of file EicStlFacet.h
Referenced by SetEdge().
EicStlKey* EicStlFacet::mKey |
Facet unique 3*3*8-byte STL key
Definition at line 73 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 73 of file EicStlFacet.h
Referenced by Calculate(), key(), and ~EicStlFacet().
TVector3 EicStlFacet::mNormal |
Normal to this facet, calculated by hand as a (v2-v1)x(v3-v1) vector product
Definition at line 75 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 75 of file EicStlFacet.h
Referenced by Calculate(), and GetNormal().
std::vector<EicStlVertex*> EicStlFacet::mVbuffer |
Definition at line 65 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 65 of file EicStlFacet.h
Referenced by Calculate(), EicStlFacet(), and EicCompositeShape::LocalFillBuffer3D().
vEntry* EicStlFacet::mVertices |
Definition at line 78 of file EicStlFacet.h.
View newest version in sPHENIX GitHub at line 78 of file EicStlFacet.h
Referenced by Calculate(), vertices(), and ~EicStlFacet().