[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15287] branches/harmonic-skeleton/release /scripts/reeb.py: More params for reeb graph visualizer

Martin Poirier theeth at yahoo.com
Fri Jun 20 20:07:16 CEST 2008


Revision: 15287
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15287
Author:   theeth
Date:     2008-06-20 20:06:41 +0200 (Fri, 20 Jun 2008)

Log Message:
-----------
More params for reeb graph visualizer

Modified Paths:
--------------
    branches/harmonic-skeleton/release/scripts/reeb.py

Modified: branches/harmonic-skeleton/release/scripts/reeb.py
===================================================================
--- branches/harmonic-skeleton/release/scripts/reeb.py	2008-06-20 16:58:41 UTC (rev 15286)
+++ branches/harmonic-skeleton/release/scripts/reeb.py	2008-06-20 18:06:41 UTC (rev 15287)
@@ -15,6 +15,20 @@
 		return "%05" % count
 
 def importGraph(count):
+	bNode = Blender.Draw.Create(1)
+	bSize = Blender.Draw.Create(0.01)
+
+	Block = []
+	
+	Block.append(("Size: ", bSize, 0.01, 10.0, "Size of the nodes"))
+	Block.append(("Nodes", bNode, "Import nodes as tetras"))
+	
+	retval = Blender.Draw.PupBlock("Reeb Graph Import", Block)
+	
+	if not retval:
+		return
+
+
 	me = Blender.Mesh.New("graph%s" % name(count))
 	scn = Blender.Scene.GetCurrent()
 	
@@ -27,8 +41,8 @@
 	i = 0
 	first = False
 	
-	SIZE = 0.3
-	WITH_NODE = True
+	SIZE = float(bSize.val)
+	WITH_NODE = bool(bNode.val)
 	
 	def addNode(v, s, verts, faces):
 		if WITH_NODE:





More information about the Bf-blender-cvs mailing list