Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-rbprm-corba
Commits
8b4e1a01
Commit
8b4e1a01
authored
Jul 30, 2019
by
Pierre Fernbach
Browse files
[script] tools : add method displaySurfaceFromPoints in display_tools
parent
1d29f658
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/tools/display_tools.py
View file @
8b4e1a01
...
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment