{"action":"created","issue":{"url":"https://api.github.com/repos/WoLpH/numpy-stl/issues/22","repository_url":"https://api.github.com/repos/WoLpH/numpy-stl","labels_url":"https://api.github.com/repos/WoLpH/numpy-stl/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/WoLpH/numpy-stl/issues/22/comments","events_url":"https://api.github.com/repos/WoLpH/numpy-stl/issues/22/events","html_url":"https://github.com/WoLpH/numpy-stl/issues/22","id":141989755,"number":22,"title":"loading an stl file","user":{"login":"AlexLee","id":3451840,"avatar_url":"https://avatars.githubusercontent.com/u/3451840?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexLee","html_url":"https://github.com/AlexLee","followers_url":"https://api.github.com/users/AlexLee/followers","following_url":"https://api.github.com/users/AlexLee/following{/other_user}","gists_url":"https://api.github.com/users/AlexLee/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexLee/subscriptions","organizations_url":"https://api.github.com/users/AlexLee/orgs","repos_url":"https://api.github.com/users/AlexLee/repos","events_url":"https://api.github.com/users/AlexLee/events{/privacy}","received_events_url":"https://api.github.com/users/AlexLee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-18T22:07:41Z","updated_at":"2016-05-10T19:48:58Z","closed_at":null,"body":"@WoLpH I tried to run the example but I get an error message stating that \"mesh\" in the mesh.Mesh_from_file method is not defined. Also, I noticed there was nothing in the stl/mesh module\r\n```\r\nimport numpy\r\nfrom stl import mesh\r\nyour_mesh = mesh.Mesh.from_file('some_file.stl')\r\n```\r\n\r\nI tried modifying the code but I get an error message stating that \"module object has no attribute \"from file\" \"\r\n\r\n```\r\nimport numpy\r\nimport stl\r\nyour_mesh = stl.from_file('some_file.stl')\r\n```"},"comment":{"url":"https://api.github.com/repos/WoLpH/numpy-stl/issues/comments/218270307","html_url":"https://github.com/WoLpH/numpy-stl/issues/22#issuecomment-218270307","issue_url":"https://api.github.com/repos/WoLpH/numpy-stl/issues/22","id":218270307,"user":{"login":"Gjacquenot","id":6797340,"avatar_url":"https://avatars.githubusercontent.com/u/6797340?v=3","gravatar_id":"","url":"https://api.github.com/users/Gjacquenot","html_url":"https://github.com/Gjacquenot","followers_url":"https://api.github.com/users/Gjacquenot/followers","following_url":"https://api.github.com/users/Gjacquenot/following{/other_user}","gists_url":"https://api.github.com/users/Gjacquenot/gists{/gist_id}","starred_url":"https://api.github.com/users/Gjacquenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gjacquenot/subscriptions","organizations_url":"https://api.github.com/users/Gjacquenot/orgs","repos_url":"https://api.github.com/users/Gjacquenot/repos","events_url":"https://api.github.com/users/Gjacquenot/events{/privacy}","received_events_url":"https://api.github.com/users/Gjacquenot/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T19:48:58Z","updated_at":"2016-05-10T19:48:58Z","body":"I succeed in loading both files with MeshLab.\r\nWith `numpy-stl`, I could just open and load 'plane_quadric6.stl'\r\n\r\n    from stl import mesh\r\n    m=mesh.Mesh.from_file('plane_quadric6.stl')\r\n\r\nThe other file creates problem:\r\n\r\n    m=mesh.Mesh.from_file('plane_noholes.stl')\r\n    ---------------------------------------------------------------------------\r\n    TypeError                                 Traceback (most recent call last)\r\n    <ipython-input-31-47d6ca79bd4e> in <module>()\r\n    ----> 1 m=mesh.Mesh.from_file('plane_noholes.stl')\r\n    \r\n    C:\\Python27\\lib\\site-packages\\stl\\stl.pyc in from_file(cls, filename, calculate_normals, fh, mode, **kwargs)\r\n        272         else:\r\n        273             with open(filename, 'rb') as fh:\r\n    --> 274                 name, data = cls.load(fh, mode=mode)\r\n        275\r\n        276         return cls(data, calculate_normals, name=name, **kwargs)\r\n    \r\n    TypeError: 'NoneType' object is not iterable\r\n"}}