-
Notifications
You must be signed in to change notification settings - Fork 1
/
HalfEdgeDSRendering.h
34 lines (25 loc) · 1.4 KB
/
HalfEdgeDSRendering.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ========================================================================= //
// Authors: Matthias Borner //
// mailto:[email protected] //
// //
// GRIS - Graphisch Interaktive Systeme //
// Technische Universität Darmstadt //
// Fraunhoferstrasse 5 //
// D-64283 Darmstadt, Germany //
// ========================================================================= //
#ifndef HALF_EDGE_DS_RENDERING_H
#define HALF_EDGE_DS_RENDERING_H
#include "HalfEdgeDS.h"
// render the complete data structure with default colors
void renderDS(const HalfEdgeDS& heDS);
// render one half edge
void renderHE(const HalfEdge* he, const Vec3f& color = Vec3f(0.0f, 0.9f, 0.05f), const float dim = 0.03f);
// render one edge
void renderE(const Edge* e, const Vec3f& color = Vec3f(0.3f, 0.9f, 0.3f));
// render one vertex
void renderV(const Vertex* v, const Vec3f& color = Vec3f(0.9f, 0.05f, 0.7f));
// special rendering for an selected half edge
void renderHEActive(const HalfEdge* he);
// generic 3D arrow from p1 to p2
void renderArrow(const Vec3f& p1, const Vec3f& p2, float diameter);
#endif