pystl
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Aug 17 02:49:16 EDT 2016
On Wednesday 17 August 2016 16:36, Poul Riis wrote:
> Can someone deliver a minimal, fully working example with the pystl module,
> https://pypi.python.org/pypi/pystl/
>
> The only example code mentioned is the following:
>
> with PySTL(‘stl_test.stl’) as stl:
> stl.add_triangle( (0.0, 0.0, 0.5), (0.0, 1.0, 0.0), (1.0, 1.0, 0.5) )
>
>
> but no matter what 'import'-statement I try I cannot make it work.
Don't make us guess. What have you tried, and what happens when you do? Cut and
paste the *actual* code you try, and the *actual* results.
http://mattgemmell.com/what-have-you-tried/
http://www.sscce.org/
> I have installed the module and a program containing only the following line
>
> from pystl import PySTL
>
> runs without any error message.
Great. Then try this:
from pystl import PySTL
with PySTL(‘stl_test.stl’) as stl:
stl.add_triangle( (0.0, 0.0, 0.5), (0.0, 1.0, 0.0), (1.0, 1.0, 0.5) )
If it doesn't work, what does it do?
--
Steve
More information about the Python-list
mailing list