taxpon / pymesh Goto Github PK
View Code? Open in Web Editor NEWLibrary for manipulating (Translate, Rotate and Scale) 3D data using numpy. Currently, this library supports STL & OBJ.
License: MIT License
Library for manipulating (Translate, Rotate and Scale) 3D data using numpy. Currently, this library supports STL & OBJ.
License: MIT License
Hi!
Is not posible to save an stl in other folder.
Line 222 in a90b3b2
That line extracts the filename from the path, maybe hardcoding filename = path
works well...
Regards,
Xabier
This library seems to have nothing to do with PyMesh
A note or hint would be nice.
I can read a stream of bytes from a file online, would be great if I could also pass bytes to obj. instead of having to save my file locally to then pass as a path
mesh = obj.Obj('dapeng.obj')
Traceback (most recent call last):
File "/home/quantumliu/anaconda3/lib/python3.5/site-packages/pymesh/obj.py", line 52, in __read
elif line.lstrip().startswith("vn"):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/quantumliu/anaconda3/lib/python3.5/site-packages/pymesh/obj.py", line 30, in init
data = Obj.__load(fh)
File "/home/quantumliu/anaconda3/lib/python3.5/site-packages/pymesh/obj.py", line 39, in __load
return numpy.fromiter(Obj.__read(fh), dtype=Obj.obj_dtype)
File "/home/quantumliu/anaconda3/lib/python3.5/site-packages/pymesh/obj.py", line 73, in __read
raise RuntimeError("Failed to load OBJ file.")
RuntimeError: Failed to load OBJ file.
Hi !
I have tried the code provided to rotate the .obj mesh but I want to only retrieve the vertices of the rotated mesh. How to do this.
Also, where is the code of rotate_y function ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.