Jan Möbius 4c35d544f4 Merge branch 'obj-fix-wrong-indices' into 'master'
Fixed broken indices for some cases of OBJ parsing by using two passes

(Continuing fixing / discussion from https://graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh/merge_requests/51)

This merge request is fixing an issue that came up as a follow-up of the following merge request:
 https://graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh/merge_requests/51

The problem it fixes occurs for some kinds of OBJ data, where vertices and face data are stored interleaved and, at the same time, the mesh contains some non-manifold geometry.  As non-manifold geometry triggers the on-the-fly creation of new vertices during parsing, the indices from the OBJ file do not match any more and the result gets messed up.

The straightforward solution applied on this branch is to parse to whole OBJ file in two passes, first the vertices and then the material data and faces. This way, possible extra vertices will always be added to the back, not interfering with indices from the OBJ file

I tested the performance on a 1.1 GB OBJ file. The loading time on my machine increased from ~59 seconds to ~65 seconds, so I believe the performance overhead could probably be considered acceptable.

Looking forward to your feedback!


See merge request !84
2016-09-28 12:17:21 +02:00
2016-05-12 12:34:55 +02:00
2016-07-11 16:23:12 +02:00
2015-04-28 11:33:32 +00:00
2016-09-27 09:21:33 +02:00
2009-06-04 10:26:08 +00:00
2016-07-11 16:23:12 +02:00
2015-09-30 13:22:56 +02:00
2015-09-14 11:12:21 +02:00
2016-07-11 16:23:12 +02:00
2015-07-13 13:05:22 +00:00
2016-07-11 16:23:12 +02:00

OpenMesh, 6.3

Getting OpenMesh

All Documentation, binaries and original source code are available at www.openmesh.org

The main git repository is available at:
https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh.git

The gitlab site can be found here:
https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh

Installing

Unpack the tar-ball to a suitable place.

A detailed build manual for Mac/Windows/Linux is in the Documentation
located at Doc/html/index.html

Documentation

The latest Documentation can be found at:
http://www.openmesh.org/media/Documentations/OpenMesh-Doc-Latest

Documentation for previous versions is available on our website as well.

Description
No description provided
Readme BSD-3-Clause 11 MiB
Languages
C++ 97.6%
CMake 1.3%
Shell 0.6%
C 0.2%
Python 0.2%
Other 0.1%