Commit 8b4e1a01 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[script] tools : add method displaySurfaceFromPoints in display_tools

parent 1d29f658
......@@ -37,4 +37,16 @@ def addVector(viewer,rbprmBuilder,color,v,name=None):
gui.applyConfiguration(name,v)
gui.refresh()
def displaySurfaceFromPoints(viewer,p_list,color=[0,0,0,1],name=None):
gui = viewer.client.gui
if name==None:
i=0
name='surface_'+str(i)
while name in gui.getNodeList():
i=i+1
name='surface_'+str(i)
gui.addCurve(name,p_list,color)
gui.addToGroup(name,viewer.sceneName)
gui.refresh()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment