Logo ROOT  
Reference Guide
REveGluTess.hxx
Go to the documentation of this file.
1// @(#)root/eve7:$Id$
2// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007, 2018
3
4/*************************************************************************
5 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12
13#ifndef ROOT7_REveGluTess
14#define ROOT7_REveGluTess
15
16#include "Rtypes.h"
17
18#include <vector>
19
20struct GLUtesselator;
21
22namespace ROOT {
23namespace Experimental {
24namespace EveGlu {
25
26//==============================================================================
27// TriangleCollector
28//==============================================================================
29
30class TestTriangleHandler;
31
33 friend class TestTriangleHandler;
34protected:
38 Int_t fV0{-1}, fV1{-1};
40 std::vector<Int_t> fPolyDesc;
41
43 void process_vertex(Int_t vi);
44
45public:
48
49 // Process polygons
50 void ProcessData(const std::vector<Double_t> &verts, const std::vector<Int_t> &polys, const Int_t n_polys);
51
52 // Get output
54 std::vector<Int_t> &RefPolyDesc() { return fPolyDesc; }
55};
56
57} // namespace EveGlu
58} // namespace Experimental
59} // namespace ROOT
60
61#endif
int Int_t
Definition: RtypesCore.h:41
polygon * polys
Definition: X3DBuffer.c:24
void ProcessData(const std::vector< Double_t > &verts, const std::vector< Int_t > &polys, const Int_t n_polys)
ProcessData.
void process_vertex(Int_t vi)
process_vertex
void add_triangle(Int_t v0, Int_t v1, Int_t v2)
add triangle
VSD Structures.
Definition: StringConv.hxx:21