VGM Version 5.3
Loading...
Searching...
No Matches
TessellatedSolid.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The RootGM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
19
20#ifndef ROOT_GM_TESSELLATED_SOLID_H
21#define ROOT_GM_TESSELLATED_SOLID_H
22
24
25#include <string>
26#include <vector>
27
28class TGeoTessellated;
29
30namespace RootGM {
31
33{
34 public:
35 TessellatedSolid(const std::string& name,
36 std::vector<std::vector<VGM::ThreeVector> > facets);
37 TessellatedSolid(TGeoTessellated* tessellated);
38 virtual ~TessellatedSolid();
39
40 // methods
41 virtual std::string Name() const;
42 virtual int NofFacets() const;
43 virtual int NofVertices(int ifacet) const;
44 virtual VGM::ThreeVector Vertex(int ifacet, int index) const;
45
46 protected:
49
50 private:
51 // methods
52 void CheckFacetIndex(int ifacet) const;
53 void CheckVertexIndex(int ifacet, int index) const;
54
55 // data members
56 TGeoTessellated* fTessellated;
57};
58
59} // namespace RootGM
60
61#endif // ROOT_GM_TESSELLATED_SOLID_H
The ABC for tessellated solid.
VGM implementation for Root tessellated solid.
virtual VGM::ThreeVector Vertex(int ifacet, int index) const
Return the index-th vertex in the ifacet-th facet.
virtual std::string Name() const
Return the name of this solid.
virtual int NofVertices(int ifacet) const
Return the number of vertices in the the ifacet-th facet.
virtual int NofFacets() const
Return the number of facets.
VGM implementation for Root.
Definition axis.h:28
std::vector< double > ThreeVector
Definition ThreeVector.h:27