Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
31
33 friend class TestTriangleHandler;
34protected:
38 Int_t fV0{-1}, fV1{-1};
40 std::vector<UInt_t> fPolyDesc;
41
43 void process_vertex(UInt_t vi);
44
45public:
48
49 // Process polygons
50 void ProcessData(const std::vector<Double_t> &verts, const std::vector<UInt_t> &polys, const Int_t n_polys);
51
52 // Get output
54 std::vector<UInt_t> &RefPolyDesc() { return fPolyDesc; }
55};
56
57} // namespace EveGlu
58} // namespace Experimental
59} // namespace ROOT
60
61#endif
polygon * polys
Definition X3DBuffer.c:24
TestTriangleHandler is just helper class to get access to protected members of TriangleCollector Hide...
void process_vertex(UInt_t vi)
process_vertex
void add_triangle(UInt_t v0, UInt_t v1, UInt_t v2)
add triangle
void ProcessData(const std::vector< Double_t > &verts, const std::vector< UInt_t > &polys, const Int_t n_polys)
ProcessData.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.