nerd opened this issue on May 15, 2000 ยท 6 posts
nerd posted Mon, 15 May 2000 at 2:14 AM Forum Moderator
I'm not sure if I should post this here or in the MAX forum. When I import some OBJ meshes into Max using the Habware plugin I'll get a warning screen it has several things that can be "wrong" but the one I usually see is "Identical vertex index in face 5" or some other number. I assume this is a bugger in the OBJ file. Any body know what this really menas? How would I locate the problem vertex and more important how do I fix it?
Anthony Appleyard posted Mon, 15 May 2000 at 2:22 AM
I would have to look at the offending .OBJ file before I could find the cause.
Anthony Appleyard posted Mon, 15 May 2000 at 2:29 AM
I would have to look at the offending .OBJ file before I could find the cause.I wrote a mesh-handling program (sorry, I can't release it yet, it still has too many bugs), which has a "garbage collecter" which does this:- - In each face, weld any consecutive corners that point (= are at) to the same vertex (= "v" line). - In each face, weld any consecutive-but-one corners that point (= are at) to the same vertex (= "v" line), and remove the corner between. - Remove any faces that have less than 3 corners. - In the lists of faces, corners, vertexes, normals, texture map coordinates, remove anything that nothing is pointing to and consolidate the list to close up the gaps and adjust the pointers accordingly.
nerd posted Mon, 15 May 2000 at 3:13 AM Forum Moderator
Holding my breath again. Your util's are among my favorites. I've always been a fan of programs that do just one thing really well. The mash is miles from being done. Perhaps the garbage collector will be ready by the time I'm done.
ScottA posted Mon, 15 May 2000 at 1:53 PM
Will the remove faces with more than 3 corners result in holes in the mesh? If so. I'd recommend adding a triangulate mesh option. Although I have no idea how hard that is to do. But I think you can pull it off. ScottA
nerd posted Mon, 15 May 2000 at 2:24 PM Forum Moderator
"Less" than 3 corners. No, it wouldn't faces with less then 3 corners are 1 dimensional and therefore invisible. Actually, Anthony has a utility the breaks up those pesky 5 siders that poser choks on. I always seem to make them too. Until he released Depent (De-pentagon) I had to hunt those buggers by hand.