numpy-stl icon indicating copy to clipboard operation
numpy-stl copied to clipboard

Initial usage `stl2ascii`???

Open glicka opened this issue 3 years ago • 2 comments

The readme has an initial usage that says stl2ascii your_binary_stl_file.stl new_ascii_stl_file.stl, but there are no options to do this in the package and no example files to run this command. Am I missing something?

glicka avatar Aug 31 '21 15:08 glicka

Are doing a pip install numpy-stl it should be a command that you can run just like the pip command.

Specifically, this part of the setup.py script takes care of that: https://github.com/WoLpH/numpy-stl/blob/b2e71ccacf7260cbbc77d8d092dd375437e46589/setup.py#L115-L119

If it doesn't work for you, that probably means you don't have the Python scripts path in your shell's PATH environment variable.

wolph avatar Aug 31 '21 22:08 wolph

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 28 '21 14:11 stale[bot]

A newer more convenient option would be to use pipx :)

First install numpy-stl using pipx: pipx install numpy-stl Once you've done that, you should be able to use the stl2ascii command from your shell

wolph avatar Dec 14 '22 03:12 wolph