Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Loading custom objects? #7

Closed
sidgairo18 opened this issue Feb 23, 2021 · 1 comment
Closed

Loading custom objects? #7

sidgairo18 opened this issue Feb 23, 2021 · 1 comment

Comments

@sidgairo18
Copy link

I have an object .stl file which I have build using a 3D CAD software. Can that be imported into the scene?
Or is there any other library where such objects can be imported and rendered.

Thanks.

@rafael-fuente
Copy link
Owner

I have implemented a class named TriangleMesh to load arbitrary .obj files as triangle meshes. So, first convert your .stl file to a .obj format.

However, the rendering is quite slow because we need to loop for every triangle of the mesh, and Python loops are very slow. A bounding volume hierarchy acceleration structure could be implemented, but I think renders will still take a lot of time.

If you want to render arbitrary triangle meshes, Python isn't the language to work with. An implementation in a compiled language like C++ should be needed for speed.

Repository owner locked and limited conversation to collaborators Jun 6, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants