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
Jason Chemin
hpp-rbprm-corba
Commits
dd71591d
Commit
dd71591d
authored
Feb 18, 2019
by
Pierre Fernbach
Browse files
[tools] update script to display DAE
parent
8a057f97
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/tools/constraint_to_dae.py
View file @
dd71591d
import
subprocess
import
os
DIR
=
"/local/fernbac
/bench_iros18
/constraints_obj/"
DIR
=
"/local/fernbac
h/qhull
/constraints_obj/"
STAB_NAME
=
"stability"
CONS_NAME
=
"constraints"
KIN_NAME
=
"kinematics"
...
...
@@ -10,8 +10,9 @@ BEZIER_NAME = "bezier_wp"
def
generate_off_file
(
name
):
os
.
remove
(
DIR
+
name
+
"_.off"
)
if
os
.
path
.
isfile
(
DIR
+
name
+
"_.off"
)
else
None
os
.
remove
(
DIR
+
name
+
".off"
)
if
os
.
path
.
isfile
(
DIR
+
name
+
".off"
)
else
None
cmd
=
"cat "
+
DIR
+
name
+
".txt | qhalf Fp | qconvex o >> "
+
DIR
+
name
+
"_.off"
#cmd = "cat "+DIR+name+".txt | qhalf Fp | qconvex o >> "+DIR+name+"_.off"
cmd
=
"cat "
+
DIR
+
name
+
".txt | qhalf FP | qconvex Ft >> "
+
DIR
+
name
+
"_.off"
try
:
subprocess
.
check_output
(
cmd
,
shell
=
True
)
print
"qHull OK for file : "
+
name
+
".txt"
...
...
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