From 980969ab63ced54d60cb2a3e08433e27ee5dcdc0 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Fri, 12 Sep 2008 21:07:25 +0000 Subject: [PATCH] Draw black border when drawing Reeb graphs --- source/blender/src/reeb.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/source/blender/src/reeb.c b/source/blender/src/reeb.c index c3690c1692f..3899d8438ae 100644 --- a/source/blender/src/reeb.c +++ b/source/blender/src/reeb.c @@ -3622,7 +3622,6 @@ void REEB_draw() } glPointSize(BIF_GetThemeValuef(TH_VERTEX_SIZE)); - glLineWidth(BIF_GetThemeValuef(TH_VERTEX_SIZE)); glDisable(GL_DEPTH_TEST); for (arc = rg->arcs.first; arc; arc = arc->next, i++) @@ -3633,6 +3632,25 @@ void REEB_draw() char text[128]; char *s = text; + glLineWidth(BIF_GetThemeValuef(TH_VERTEX_SIZE) + 2); + glColor3f(0, 0, 0); + glBegin(GL_LINE_STRIP); + glVertex3fv(arc->head->p); + + if (arc->bcount) + { + initArcIterator(&iter, arc, arc->head); + for (bucket = nextBucket(&iter); bucket; bucket = nextBucket(&iter)) + { + glVertex3fv(bucket->p); + } + } + + glVertex3fv(arc->tail->p); + glEnd(); + + glLineWidth(BIF_GetThemeValuef(TH_VERTEX_SIZE)); + if (arc->symmetry_level == 1) { glColor3f(1, 0, 0);