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

Extract Vertice-Point From Waveform File with Object Separation #153

Open
hubernikus opened this issue Apr 22, 2024 · 1 comment
Open

Extract Vertice-Point From Waveform File with Object Separation #153

hubernikus opened this issue Apr 22, 2024 · 1 comment

Comments

@hubernikus
Copy link

Is there a way to extract the vertices from a *.obj file which has an object separation, but all object-segments have the same material?

E.g., as the file attached with three separated cube segments.
three_cube.zip

@hubernikus
Copy link
Author

Update (for anyone stumbling across this topic). The individual meshes can be accessed easily using trimesh easily as follows:

import trimesh
mesh = trimesh.load(
        filename,
        split_object=True,
        group_material=False,
        process=False,
        # Without maintain_order to false, there are weird artifacts in texture
        maintain_order=False,
    )
mesh.geometry.values()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant