Importing a .stl file from script
Posted: 13 Sep 2018, 14:18
Hi there,
I've been trying to import an .stl file to V-rep by using scripts in Lua with no success. The function that I'm using is the following one:
sim.importShape(4,'DCT.stl',0,0.000001,1)
After I run my simulation the imported shape from the .stl file appears in the 'Scene hierarchy' as 'Shape' but it's not shown in the graphics window. Whenever I try to change the position of it the initial position in x, y and z is set to 'nan'. I have tried by changing those values to any other coordinates and still is not showing.
Just for your information I'm using V-rep pro edu 3.5 in Ubuntu 18
I was wondering if anyone of you could help me with this issue please.
Thanks,
I've been trying to import an .stl file to V-rep by using scripts in Lua with no success. The function that I'm using is the following one:
sim.importShape(4,'DCT.stl',0,0.000001,1)
After I run my simulation the imported shape from the .stl file appears in the 'Scene hierarchy' as 'Shape' but it's not shown in the graphics window. Whenever I try to change the position of it the initial position in x, y and z is set to 'nan'. I have tried by changing those values to any other coordinates and still is not showing.
Just for your information I'm using V-rep pro edu 3.5 in Ubuntu 18
I was wondering if anyone of you could help me with this issue please.
Thanks,