<commit_before># stl-to-voxel
Turn STL files into voxels, images, and videos
### Main Features
* Convert stl files into a voxel representation
* Output to (a series of) .pngs, .xyz, .svx
* Command line interface

### How to run
```
$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git
$ stltovoxel my_input_file.stl my_output_files.png
```

```
$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git
>>> import stltovoxel
>>> stltovoxel.convert_file('my_input_file.stl', 'my_output_files.png')
```

<!--- https://commons.wikimedia.org/wiki/File:Stanford_Bunny.stl --->

The resolution is optional and defaults to 100.

### Example: 
![alt text](https://github.com/rcpedersen/stl-to-voxel/raw/master/data/stanford_bunny.png "STL version of the stanford bunny")
![alt text](https://github.com/rcpedersen/stl-to-voxel/raw/master/data/stanford_bunny.gif "voxel version of the stanford bunny")<commit_msg>Add another way to run<commit_after># stl-to-voxel
Turn STL files into voxels, images, and videos
### Main Features
* Convert stl files into a voxel representation
* Output to (a series of) .pngs, .xyz, .svx
* Command line interface

### How to run
```
$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git
$ stltovoxel my_input_file.stl my_output_files.png
```

```
$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git
>>> import stltovoxel
>>> stltovoxel.convert_file('my_input_file.stl', 'my_output_files.png')
```

```
$ git clone https://github.com/cpederkoff/stl-to-voxel.git
$ cd stl-to-voxel
$ python3 -m stltovoxel.main my_input_file.stl my_output_files.png
```

<!--- https://commons.wikimedia.org/wiki/File:Stanford_Bunny.stl --->

The resolution is optional and defaults to 100.

### Example: 
![alt text](https://github.com/rcpedersen/stl-to-voxel/raw/master/data/stanford_bunny.png "STL version of the stanford bunny")
![alt text](https://github.com/rcpedersen/stl-to-voxel/raw/master/data/stanford_bunny.gif "voxel version of the stanford bunny")
{'fraction_non_alphanumeric': 0.15154536390827517, 'fraction_numerical': 0.003489531405782652, 'mean_word_length': 4.717948717948718, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4680153', 'n_tokens_mistral': 799, 'n_tokens_neox': 757, 'n_words': 157}