More params for reeb graph visualizer

This commit is contained in:
Martin Poirier
2008-06-20 18:06:41 +00:00
parent 42eed50935
commit b5bde6d4dc

View File

@@ -15,6 +15,20 @@ def name(count):
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 @@ def importGraph(count):
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: