wolph / numpy-stl

Simple library to make working with STL files (and 3D objects in general) fast and easy.
http://numpy-stl.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
605 stars 103 forks source link

Homepage example does not work #128

Closed andreasbuhr closed 4 years ago

andreasbuhr commented 4 years ago

Hi there,

I just tested the example from your webpage: https://pypi.org/project/numpy-stl/

I get the error:

Traceback (most recent call last):
  File "meshimport.py", line 14, in <module>
    scale = your_mesh.points.flatten(-1)
ValueError: Non-string object detected for the array ordering. Please pass in 'C', 'F', 'A', or 'K' instead
wolph commented 4 years ago

You're right, it seems numpy has changed the parameters for that function. As far as I can see you can simply omit the -1 and it should work :)

stale[bot] commented 4 years ago

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.