Commit Graph

1114 Commits

Author SHA1 Message Date
Jan Möbius
1ab77e166b Merge branch 'Throw_error_when_no_readers_are_available' into 'master'
Throw error when no readers are available



See merge request !69
2016-05-30 16:27:53 +02:00
Jan Möbius
ec84b4750a More MINGW compatibility changes 2016-05-30 16:26:01 +02:00
Jan Möbius
2822bb61a3 Add plain stl extension to stlwriter 2016-05-30 16:19:55 +02:00
Jan Möbius
b4cea6008d Handle nr newlines 2016-05-30 16:12:38 +02:00
Jan Möbius
5903657e6a Throw error when no readers are available 2016-05-30 14:07:11 +02:00
Jan Möbius
b2f3d5eac4 Several changes to make Mingw happy 2016-05-30 14:00:43 +02:00
Martin Schultz
4b8f1bf667 fixes MSVC Community 2015 ICE
The default constructors are now used as template specializations by
postponing them below the template definition
2016-05-24 15:06:32 +02:00
Janis Born
bb024a6846 move documentation of PropertyManager factory functions to PropertyManager Doxygen page 2016-05-23 15:04:28 +02:00
Jan Möbius
bca37d9653 Fixed binary reader errors in ply reader. (Thanks to Michael Kremer for the patch). 2016-05-17 13:15:29 +02:00
Jan Möbius
438410786f Fixed another warning 2016-05-11 11:11:53 +02:00
Jan Möbius
196dfedbbb Merge branch 'master' of https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh 2016-05-11 11:11:00 +02:00
Jan Möbius
37493141b1 Fixed another warning 2016-05-11 11:10:53 +02:00
Jan Möbius
d0f26a8044 Wrong init order fixed 2016-05-11 10:22:28 +02:00
Jan Möbius
161d6fe518 Fixed more cppcheck warnings 2016-05-10 15:02:02 +02:00
Jan Möbius
5cebbd146f Some fixes for min gw (Thanks to Xan for the patch) 2016-05-09 11:15:25 +02:00
Max Limper
c7b64addec Copy per-halfedge and per-face properties to new elments during triangulation 2016-05-03 16:02:59 +02:00
Jan Möbius
ffbab0a3aa Bumped version to OpenMesh 6.1 2016-04-29 15:26:25 +02:00
Jan Möbius
8ab97e2b2d Wrong install path for plugins 2016-04-29 12:54:28 +02:00
Jan Möbius
8846837e9e Directly copy qt.conf on install 2016-04-29 11:23:02 +02:00
Jan Möbius
c5e24a4d85 Typo 2016-04-29 10:31:18 +02:00
Jan Möbius
d1a3bbd62c Typo 2016-04-29 10:28:55 +02:00
Jan Möbius
bc7a6b78d5 Fixed missing qt.con install target 2016-04-29 10:22:57 +02:00
Jan Möbius
ebfeb26130 Install qt plugins and qt.conf 2016-04-29 10:15:48 +02:00
Jan Möbius
254a4c9054 Initialize array of vectors on VS2015 2016-04-28 12:04:15 +02:00
Jan Möbius
3917bccea8 Split variables to seperate lines. 2016-04-28 09:39:31 +02:00
Jan Möbius
1c85080a1e - Updated changelog
- Always emit warning
2016-04-15 15:57:07 +02:00
Isaak Lim
6c6ce56c3c don't emit an error message for every face that could not be added (due to complex elements) 2016-04-15 14:01:11 +02:00
Jan Möbius
17217c405d Merge branch 'fixDoubleSwap' into 'master'
Fix double swap



See merge request !54
2016-04-14 15:42:24 +02:00
Jan Möbius
2496fa8363 Merge branch 'property-manager-factories' into 'master'
add factory functions for creating PropertyManagers without restating the mesh type in C++11



See merge request !53
2016-04-14 15:11:03 +02:00
Janis Born
4e2ae5be3e create unit tests for C++11 PropertyManager features 2016-04-14 13:34:23 +02:00
Martin Schultz
0a0d7e1fad fix c++98 compiler error on gcc 2016-04-14 13:06:17 +02:00
Martin Schultz
7e1d9e0c16 adds unittests for binary serialization of strings 2016-04-14 12:54:50 +02:00
Martin Schultz
e7ed1ca1e0 fixes #17 by removing the swap of len in string serialization specification 2016-04-14 12:52:21 +02:00
Jan Möbius
04a01c9e99 Merge branch 'fix-nonmanifold-no-collect' into 'master'
Not collecting failed faces but directly processing them

**Problem description:**

I encountered severe problems in my application because OpenMesh does not load attributes, such as face texture index, for failed faces (non-manifold geometry).
Instead of directly handling them, the Importer class defers the handling of failed faces to a post process - but at that point, the attribute information is not available any more, since it is read and applied in the reader, which only deals with the non-failed faces.


**Solution:**

My simple solution was to remove the list of failed faces and instead directly handle failed faces inside the "add_face" function of the Importer class.


**Discussion:**

I didn't see any drawback, compared to the previous code. It would be interesting to know why the list of failed faces was maintained - was this legacy code, or was there some idea to extend this concept, which was just  never realized? The only functional point that has changed is that I removed the code that adds degenerate faces to the mesh (line 129), since, in my opinion, this makes things just more complicated for some applications, and the benefit of being able to import degenerate faces seems marginal. But that's a design decision, it will be very easy to encapsulate the code that adds a separate face (line 140) into a separate function and use it also for degenerate faces.

It would be great to receive your feedback on this issue, and to know if it is possible to include this change (or something similar).

See merge request !51
2016-04-14 10:56:45 +02:00
Janis Born
70d7ae8a79 add factory functions for creating PropertyManagers without restating the mesh type in C++11 2016-04-14 09:58:54 +02:00
Jan Möbius
697a205389 Added check for property iterators 2016-04-07 15:51:22 +02:00
Max Limper
532f64464a Not collecting failed faces but directly processing them 2016-04-06 17:28:41 +02:00
Jan Möbius
6a045b5c5e Obj writer: Fix OBJ writer bug file extension removal (Thanks to Katharina Breininger for the patch)
(cherry picked from commit 4cfe75788a5374978555322c596ecdea9909516a)
2016-04-05 15:44:34 +02:00
Jan Möbius
afc5101cc3 Decimater: Added missing preprocess collapse call in size_t DecimaterT<Mesh>::decimate(size_t _n_collapses) (Thanks to Andrej Ivanis for the hint)
(cherry picked from commit 0dee5a6199d278ff2fb4299cf2cef67ba16ded6e)
2016-04-05 15:04:09 +02:00
Hans-Christian Ebke
00101c13e0 Merge remote-tracking branch 'origin/master' into performance_tuning 2016-03-24 12:59:35 +01:00
Hans-Christian Ebke
3868b351ec Added a whole bunch of doxygen documentation. 2016-03-24 12:58:43 +01:00
Jan Möbius
434a0ed1c6 Merge branch 'obj_mat_file' into 'master'
Fix OBJ material files and face color (Thanks to Sven-Kristofer Pilz for the patch)

closes #20 

See merge request !50
2016-03-23 13:45:56 +01:00
Janis Born
b1a7d43a83 drop VectorDimensionsT metaprogram in favor of vector_traits
(thanks to Marco Centin and Amodio Pesce)
2016-03-17 18:29:55 +01:00
Jan Möbius
44cb2ebc4d Fix OBJ material files and face color (Thanks to Sven-Kristofer Pilz for the patch) 2016-02-11 14:49:44 +01:00
Alexander Dielen
04fc8dac85 Fixed CR LF newline handling for binary file headers. 2016-02-11 14:04:52 +01:00
Jan Möbius
cee7b56f5e Fixed ugly typo in __decrement function of Basehandle. Seems to be unused in the rest of the code. 2016-02-04 09:40:23 +01:00
Jan Möbius
c5cfef8742 Fixed Typo in cmake install for smoother (Thanks to Takashi Michikawa for the fix). 2016-01-29 08:50:21 +01:00
Alexander Dielen
1d043197b1 fixed dangling pointer 2016-01-13 13:58:48 +01:00
Hans-Christian Ebke
63985edd59 Fixed allocation bug. 2016-01-08 00:49:04 +01:00
Jan Möbius
0908ea2a9e Merge branch 'featureOBJReader3dTexcoords' into 'master'
texcoord3d support for obj loader

closes #19 

unfortunately the other supported file formats dont seem to support 3d texture coords.
as for ply the naming of elements is not defined and therefore arbitrary
as for off and om these formats seem to only support 2d texcoords
stl seems to not support texcoords at all


See merge request !45
2016-01-06 14:51:32 +01:00