Original Post
Actually, I want to convert *.stl file format into *.ply or *.obj.
The reason is that, stl file doesn't contain the triangles information. its just contains vertices. (normals is not an issue here..). But I want the triangular information like *.ply or *.obj has.
triangular means..*ply or *obj file format
vertex 0 0 0
vertex 0 1 0
vertex 1 1 0
vertex 1 0 0
face 1 2 3
face 1 2 4
above code has two triangles and 4 vertices. right? but *stl file doesn't contain any kind of face information.
I don't have any issue to read *stl or write *stl ... I can even render the 3D stl model.
My issue is I just want to convert this *.stl file format into *.ply or *obj.
I spent too much time on net but didn't find any kind of code or idea relevant to this. Kindly give me some idea that how can I convert it. How can i extract face information from stl ?
thanks.
The reason is that, stl file doesn't contain the triangles information. its just contains vertices. (normals is not an issue here..). But I want the triangular information like *.ply or *.obj has.
triangular means..*ply or *obj file format
vertex 0 0 0
vertex 0 1 0
vertex 1 1 0
vertex 1 0 0
face 1 2 3
face 1 2 4
above code has two triangles and 4 vertices. right? but *stl file doesn't contain any kind of face information.
I don't have any issue to read *stl or write *stl ... I can even render the 3D stl model.
My issue is I just want to convert this *.stl file format into *.ply or *obj.
I spent too much time on net but didn't find any kind of code or idea relevant to this. Kindly give me some idea that how can I convert it. How can i extract face information from stl ?
thanks.