PyWavefront icon indicating copy to clipboard operation
PyWavefront copied to clipboard

Extract Vertice-Point From Waveform File with Object Separation

Open hubernikus opened this issue 1 year ago • 1 comments

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 avatar Apr 22 '24 21:04 hubernikus

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()

hubernikus avatar May 22 '24 09:05 hubernikus