[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16494] branches/harmonic-skeleton/source/ blender/src/reeb.c: Draw black border when drawing Reeb graphs
Martin Poirier
theeth at yahoo.com
Fri Sep 12 23:07:25 CEST 2008
Revision: 16494
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16494
Author: theeth
Date: 2008-09-12 23:07:25 +0200 (Fri, 12 Sep 2008)
Log Message:
-----------
Draw black border when drawing Reeb graphs
Modified Paths:
--------------
branches/harmonic-skeleton/source/blender/src/reeb.c
Modified: branches/harmonic-skeleton/source/blender/src/reeb.c
===================================================================
--- branches/harmonic-skeleton/source/blender/src/reeb.c 2008-09-12 20:00:05 UTC (rev 16493)
+++ branches/harmonic-skeleton/source/blender/src/reeb.c 2008-09-12 21:07:25 UTC (rev 16494)
@@ -3622,7 +3622,6 @@
}
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 @@
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);
More information about the Bf-blender-cvs
mailing list