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

The output mesh (.obj) file does not have textures using crop function of open3d #2464

Closed
maosuli opened this issue Oct 13, 2020 · 8 comments
Labels
bug Not a build issue, this is likely a bug. feature request

Comments

@maosuli
Copy link

maosuli commented Oct 13, 2020

The input mesh is a .obj file with full textures. I want to crop it to get a part as an output. However, the output mesh (.obj) file does not have textures using crop function. Is there a solution to solve it?

key code_python

def seperate(tranglemesh):
maxbox=tranglemesh.get_max_bound()
minbox=tranglemesh.get_min_bound()
crop_box=o3d.geometry.AxisAlignedBoundingBox([minbox[0],minbox[1],100],[maxbox[0],maxbox[1],151.2])
pcdc=tranglemesh.crop(crop_box)
o3d.io.write_triangle_mesh(outputpath,pcdc)

The output files include a .mtl file and .obj file. No textures files (.jpg or png) exist. And the mapping recorded in the .mtl file is also not complete.

Thank you for your comments and opinions.

@maosuli maosuli added the bug Not a build issue, this is likely a bug. label Oct 13, 2020
@griegler
Copy link
Contributor

Unfortunately, most of the mesh processing functions do not consider textures (or material maps). This includes also the crop method at the moment. We have it on our list.

@maosuli
Copy link
Author

maosuli commented Oct 13, 2020

OK. Thank you. I see.

@maosuli
Copy link
Author

maosuli commented Oct 13, 2020

By the way, may I know if there are some other open-source tools or platforms, which can realize this case? @griegler Thanks.

@griegler
Copy link
Contributor

Maybe vcglib https://github.com/cnr-isti-vclab/vcglib

@maosuli
Copy link
Author

maosuli commented Oct 14, 2020

OK. Thanks.

@liuliu66
Copy link

@griegler Hi, has this function been implemented? It is important for me in cropping meshes. Thank you!

@nickponline
Copy link

@LuZaiJiaoXiaL @liuliu66 @griegler I'm also looking for this, or at least a workaround using other tools?

@zell180
Copy link

zell180 commented Jun 26, 2023

i'm looking for this, no fix or feature implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug. feature request
Projects
None yet
Development

No branches or pull requests

6 participants