cmpolis / convertSTL

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

Create Convert-All-STLs-In-Folder.rb #7

Closed isrightkev closed 3 years ago

isrightkev commented 3 years ago

Converts all STL files in folder between binary and ASCII encoding

isrightkev commented 3 years ago

Converts all STL files in folder between binary and ASCII encoding

cmpolis commented 3 years ago

thanks for the PR! This is definitely a useful feature, but I prefer to not have duplicated code and keep a single api, so I authored a change which adds support for this by moving the current functionality into a loop over ARGV: https://github.com/cmpolis/convertSTL/commit/b353f144bd14f77f1a0f3177dcc2969a0ffcf388

Now the following are supported:

$ ruby convertSTL.rb cube1.stl cube2.stl
$ ruby convertSTL.rb ../dirWithStlFiles/*.stl