Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding Mesh3D.from_obj classmethod #305

Open
alphonse-lin opened this issue Jul 9, 2021 · 3 comments
Open

Consider adding Mesh3D.from_obj classmethod #305

alphonse-lin opened this issue Jul 9, 2021 · 3 comments
Labels
wish New feature or request which is not critical to continued development at this point

Comments

@alphonse-lin
Copy link

I am wondering, is it any possible way for ladybug tools to read obj models from the local path?

Or I have to write it by myself via transferring obj file into ladybug_geometry.geometry3d.mesh

@mostaphaRoudsari
Copy link
Member

Hi @alphonse-lin, we don't currently have support for importing obj files. I would do what you suggested above.

@mostaphaRoudsari mostaphaRoudsari added the question Further information is requested label Jul 9, 2021
@chriswmackey chriswmackey added wish New feature or request which is not critical to continued development at this point and removed question Further information is requested labels Jul 30, 2021
@chriswmackey chriswmackey changed the title system io Consider adding Mesh3D.from_obj classmethod Jul 30, 2021
@chriswmackey
Copy link
Member

I know that I am late here but I just wanted to add that this is a good idea. If anyone has documentation on the .obj format, this will help in writing the translator.

@mostaphaRoudsari
Copy link
Member

mostaphaRoudsari commented Apr 19, 2022

@chriswmackey, I don't know how you feel about adding dependencies but this library might help.
https://github.com/pywavefront/PyWavefront

I should also add that if we don't want to load the mtl files which I understand we don't then the structure is pretty straightforward. You just read the vertices (lines start with v) and then create the faces (lines start with f).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wish New feature or request which is not critical to continued development at this point
Projects
None yet
Development

No branches or pull requests

3 participants