cmpolis / convertSTL

A utility for converting STL files between ASCII and binary encoding.
78 stars 28 forks source link

How to run the code? #3

Open aytekno opened 7 years ago

aytekno commented 7 years ago

Hello, I have an stl file that I have scanned from 3d scanner. Your code is under Download and I copied my scanned stl file which is in binary format in the same folder. I call your code like ./convertSTL.rb [1502182742.stl] but gives error: Error: No such file or directory @ rb_sysopen - [1502182742.stl] So where should be the stl file? Thank you in advance.

aytekno commented 7 years ago

I wrote my stl file name inside the code after begin as anrgument and now it works. But I could not pass as a parameter.

muhummadPatel commented 7 years ago

Hi @aytekno

Note, that you don't need to wrap the filename in square brackets. Can you try running ./convertSTL.rb 1502182742.stl instead and see if that works?

Hope that helps 😄

aytekno commented 7 years ago

Thank you @muhummadPatel , Running code from terminal works but I want to call this code inside my Qt Application. I wrote "path/convertSTL.rb path/file_name" into QString and called from the start method of QProcess. Does not give error but also does not convert the file. Do ypu know how can I call this code from Qt?