PyWavefront
PyWavefront copied to clipboard
Extract Vertice-Point From Waveform File with Object Separation
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
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()