0 Members and 1 Guest are viewing this topic.
Yes, when writing into file, they are merged into one mesh.
Seems you misunderstand.
On the object side, there maybe multiple meshes,
on the file side one obj file only holds a mesh.
So when writing, data are read from meshes and written into file which is one mesh. That's why I called it merge. It is not merging into one mesh before write to file.
# Exported from NVil (1.0)mtllib 3_box.mtlo Object_Box# Vertices: 8# Faces: 12# Materials: 1# vertex listv -1.5 -0.5 1.5 #vertex list of "object_Box" v -1.5 -0.5 0.5 # Vertex numbered 1 to 8v -0.5 -0.5 1.5v -0.5 -0.5 0.5v -1.5 0.5 1.5v -1.5 0.5 0.5v -0.5 0.5 1.5v -0.5 0.5 0.5# face listusemtl Mtrl_01g # Group name?s 2f 1 2 4 3 #face list using vertex numbers from "object_box", corrects 4f 5 7 8 6s 8f 1 3 7 5s 16f 2 6 8 4s 32f 1 5 6 2s 64f 3 4 8 7o Object_Box_01# Vertices: 8# Faces: 12# Materials: 1# vertex listv 0.5 -0.5 1.5 #vertex list of "object_Box?_01"v 0.5 -0.5 0.5 #Vertex numbered 9 to 16v 1.5 -0.5 1.5v 1.5 -0.5 0.5v 0.5 0.5 1.5v 0.5 0.5 0.5v 1.5 0.5 1.5v 1.5 0.5 0.5# face listusemtl Mtrl_01g #Group Name?s 2f 9 10 12 11 #Face list using vertex numbers from "object_Box_01", corrects 4f 13 15 16 14s 8f 9 11 15 13s 16f 10 14 16 12s 32f 9 13 14 10s 64f 11 12 16 15o Object_Box_02# Vertices: 8# Faces: 12# Materials: 1# vertex listv 0.5 -0.5 -0.5 #vertex list of "object_Box_02"v 0.5 -0.5 -1.5 #Vertex numbered 17 to 24v 1.5 -0.5 -0.5v 1.5 -0.5 -1.5v 0.5 0.5 -0.5v 0.5 0.5 -1.5v 1.5 0.5 -0.5v 1.5 0.5 -1.5# face listusemtl Mtrl_01g #Group name?s 2f 9 10 12 11 #Face list using vertex numbers from "object_Box_01", incorrect.s 4f 13 15 16 14s 8f 9 11 15 13s 16f 10 14 16 12s 32f 9 13 14 10s 64f 11 12 16 15# End of file