Commit dd71591d authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[tools] update script to display DAE

parent 8a057f97
import subprocess import subprocess
import os import os
DIR = "/local/fernbac/bench_iros18/constraints_obj/" DIR = "/local/fernbach/qhull/constraints_obj/"
STAB_NAME = "stability" STAB_NAME = "stability"
CONS_NAME = "constraints" CONS_NAME = "constraints"
KIN_NAME = "kinematics" KIN_NAME = "kinematics"
...@@ -10,8 +10,9 @@ BEZIER_NAME = "bezier_wp" ...@@ -10,8 +10,9 @@ BEZIER_NAME = "bezier_wp"
def generate_off_file(name): 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
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 : try :
subprocess.check_output(cmd,shell=True) subprocess.check_output(cmd,shell=True)
print "qHull OK for file : "+name+".txt" print "qHull OK for file : "+name+".txt"
......
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