Import STL to MoI
All  1-16  17-20

Message 7046.17 deleted 31 May 2016 by BEMFARMER

Previous
Next
 From:  chippwalters
7046.18 In reply to 7046.16 
Michael,

Thanks for the clear explanation. Didn't know about the ascii vs binary switch in MoI. Thanks for the tip!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dune1982
7046.19 In reply to 7046.16 
Is there any one that could help me improve the script to read binary stl files too? I have no idea how to parse the binary stl file.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
7046.20 In reply to 7046.19 
Hi dune1982 - it will difficult to try and read in a binary file because the method currently set up for scripts to access files (moi.filesystem.openFileStream) is currently only focused on reading text files line by line, and does not have anything set up in it for reading binary files which would be more like reading in a certain number of bytes rather than scanning for carriage returns or newline characters.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-16  17-20