Commit Graph

444 Commits

Author SHA1 Message Date
Hans-Christian Ebke
d85fe40f59 Added build support for C++11.
FindCXX11.cmake copied from OpenFlipper.
2015-11-09 18:04:43 +01:00
Martin Schultz
4c80b7e52f * added more unittests for c++11 ranges vvrange and vertexrange 2015-10-01 16:27:12 +02:00
Martin Schultz
c8316a013e * added basic vvrange testcase that checks if a mesh with only one vertex has an empty vvrange. 2015-09-29 17:12:43 +02:00
Martin Schultz
1e7fe6317d fixes #2
* removes -ansi since -ansi enforces older c++ standard
2015-09-29 15:12:38 +02:00
Matthias Möller
fe86a44c1d add custom property (with pod data type) support for binary ply files
closes #2496

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1331 fdac6126-5c0c-442c-9429-916003d36597
2015-08-28 09:20:26 +00:00
Matthias Möller
d00936aa14 add unittest for write stla
refs #2525

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1329 fdac6126-5c0c-442c-9429-916003d36597
2015-08-21 12:37:48 +00:00
Matthias Möller
ec436cd398 cleanup off writer output file
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1327 fdac6126-5c0c-442c-9429-916003d36597
2015-08-21 12:11:16 +00:00
Matthias Möller
1d28bd15db add obj writer unittest
refs #2525

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1326 fdac6126-5c0c-442c-9429-916003d36597
2015-08-21 12:10:56 +00:00
Matthias Möller
e663fb9bac fix crash when saving a mesh and a custom property was removed before
extend unittest for this case

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1323 fdac6126-5c0c-442c-9429-916003d36597
2015-07-28 18:16:16 +00:00
Jan Möbius
fc4089ff3b Fixed bug in polymesh normal computation. Added more unittests for normal computation.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1316 fdac6126-5c0c-442c-9429-916003d36597
2015-07-25 19:28:39 +00:00
Jan Möbius
305aa1b244 Get rid of some windows preprocessor warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1315 fdac6126-5c0c-442c-9429-916003d36597
2015-07-24 13:19:40 +00:00
Jan Möbius
ac23cb90bb Fixed warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1301 fdac6126-5c0c-442c-9429-916003d36597
2015-06-25 10:45:05 +00:00
Jan Möbius
afad5ef624 Added a test to check if we can continue to iterate from end after adding more vertices.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1296 fdac6126-5c0c-442c-9429-916003d36597
2015-06-22 13:55:47 +00:00
Jan Möbius
a92623dd8c Removed experimental flag
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1293 fdac6126-5c0c-442c-9429-916003d36597
2015-06-19 08:43:20 +00:00
Matthias Möller
f0e51c54aa fix output directory for windows
closes #2505

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1289 fdac6126-5c0c-442c-9429-916003d36597
2015-06-18 11:23:28 +00:00
Jan Möbius
0460f0811f Fixed wrong rpath in unittest binary
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1288 fdac6126-5c0c-442c-9429-916003d36597
2015-06-16 10:57:51 +00:00
Jan Möbius
d94290c0fe Use the acg macro to add the unittests to make sure flags are passed through (e.g. to enable c++11)
closes #2500



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1287 fdac6126-5c0c-442c-9429-916003d36597
2015-06-16 09:39:12 +00:00
Matthias Möller
a9315fdb58 - ply writer: add custom property support for ascii version
refs #2496
closes #2480

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1285 fdac6126-5c0c-442c-9429-916003d36597
2015-06-16 08:52:20 +00:00
Matthias Möller
59b0cafecd - fix ply ascii reader with custom face properties which aren't declared as list
- extend unittest for this case

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1284 fdac6126-5c0c-442c-9429-916003d36597
2015-06-16 08:37:42 +00:00
Matthias Möller
324acba2f2 - load vertex color values as float in range of [0..1] instead of integers [0..255]
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1283 fdac6126-5c0c-442c-9429-916003d36597
2015-06-11 14:20:16 +00:00
Jan Möbius
f4f07472c6 Added c++11 test file
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1282 fdac6126-5c0c-442c-9429-916003d36597
2015-06-11 14:03:09 +00:00
Matthias Möller
d1ce0efb54 add write unittest for binary files
refs #2497

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1281 fdac6126-5c0c-442c-9429-916003d36597
2015-06-11 11:15:35 +00:00
Matthias Möller
030ef9b9e2 remove warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1271 fdac6126-5c0c-442c-9429-916003d36597
2015-06-01 12:23:21 +00:00
Matthias Möller
e1a72035c0 improve performance for small vectors/faces
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1269 fdac6126-5c0c-442c-9429-916003d36597
2015-05-26 12:08:32 +00:00
Matthias Möller
d8d26b7c18 ply ascii reader:
- add read support for custom list properties (vertices and faces)


closes #2370

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1268 fdac6126-5c0c-442c-9429-916003d36597
2015-05-18 11:52:18 +00:00
Hans-Christian Ebke
777f97837b Added unit test for bool PropertyManager::set_range.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1264 fdac6126-5c0c-442c-9429-916003d36597
2015-05-11 16:28:10 +00:00
Jan Möbius
fc6ad8eb30 Added basic smoother compile test
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1263 fdac6126-5c0c-442c-9429-916003d36597
2015-05-07 07:08:25 +00:00
Matthias Möller
12b7069cf7 - fix warning with vector_cast
- add compile error, if vector_cast cannot be performed
- adds some color cast specializations
- add simple vector_cast unittest

closes #2409

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1249 fdac6126-5c0c-442c-9429-916003d36597
2015-03-24 10:36:41 +00:00
Matthias Möller
6ca78b0659 using dynamic request_attribute method for the example
closes #2422

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1242 fdac6126-5c0c-442c-9429-916003d36597
2015-03-11 12:46:32 +00:00
Martin
6b43727a01 * changed unittest for flipping triangleMeshes to use vhandles and removed std::endl
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1239 fdac6126-5c0c-442c-9429-916003d36597
2015-03-10 15:28:00 +00:00
Martin
d5f251260c * added missing requestsfor polyMesh.
* fixed missing mesh. before to_vertex_handle / to_edge_handle
* fixed minor typo in documentation
* added unitTests for flipping / collapsing code snippets
closes #2420

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1238 fdac6126-5c0c-442c-9429-916003d36597
2015-03-10 15:18:51 +00:00
Matthias Möller
53371f63e1 - fix crash, if obj file contains degenerated faces
- added unittest for this case

closes #2382

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1236 fdac6126-5c0c-442c-9429-916003d36597
2015-03-09 09:56:41 +00:00
Matthias Möller
4020a879e6 moved face* circulators to old behavior
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1234 fdac6126-5c0c-442c-9429-916003d36597
2015-03-04 15:47:04 +00:00
Matthias Möller
53b9020496 bringing back the old circulators. marked decrement operator as deprecated. Please use CW/CCW iterators
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1230 fdac6126-5c0c-442c-9429-916003d36597
2015-03-04 12:59:54 +00:00
Matthias Möller
e8053753b1 cppcheck fp fix
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1228 fdac6126-5c0c-442c-9429-916003d36597
2015-02-24 09:58:47 +00:00
Matthias Möller
eb877fe9da adding cw and ccw circulators
closes #2406

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1227 fdac6126-5c0c-442c-9429-916003d36597
2015-02-23 16:02:40 +00:00
Matthias Möller
0f9b4c2358 - changed lap_counter to int type
- extent circulator unittests for endings testing now the cases: (--endIter).is_valid and (++(--startIter)).is_valid

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1226 fdac6126-5c0c-442c-9429-916003d36597
2015-02-19 15:47:21 +00:00
Jan Möbius
1af153e52d refs #1382
- Fixed the problem that the end iterator could become valid again if it was incremented.
- Decrementing the start iterator will return an invalid iterator now (Maybe we can implement reverse iterators)
- Removed one check from the iteration, which should result in faster execution of is_valid().



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1225 fdac6126-5c0c-442c-9429-916003d36597
2015-02-19 09:58:00 +00:00
Matthias Möller
74942b5eb7 fix "relink failed" condition
closes #1244

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1220 fdac6126-5c0c-442c-9429-916003d36597
2015-02-10 14:15:25 +00:00
Matthias Möller
b9fd3edef9 add observer pattern to all decimaters
closes #2366

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1197 fdac6126-5c0c-442c-9429-916003d36597
2015-01-15 10:19:39 +00:00
Jan Möbius
3eac86c9e4 Signed unsigned warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1186 fdac6126-5c0c-442c-9429-916003d36597
2014-12-10 13:02:38 +00:00
Jan Möbius
36fed2d4ec Fixed clang warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1185 fdac6126-5c0c-442c-9429-916003d36597
2014-12-10 10:01:40 +00:00
Matthias Möller
9680df9f63 add custom property support for PLY reader ASCII version
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1181 fdac6126-5c0c-442c-9429-916003d36597
2014-10-24 08:52:07 +00:00
Matthias Möller
3750e2a633 fix cppcheck warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1180 fdac6126-5c0c-442c-9429-916003d36597
2014-10-15 09:45:31 +00:00
Matthias Möller
b6dcb8ada6 add unittest for vdpm (read and write/read)
closes #2263

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1179 fdac6126-5c0c-442c-9429-916003d36597
2014-10-15 09:27:01 +00:00
Jan Möbius
24bd7be273 Fixed several unused variables
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1150 fdac6126-5c0c-442c-9429-916003d36597
2014-08-29 08:28:47 +00:00
Jan Möbius
7e0d758ad2 Fixed wanring
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1149 fdac6126-5c0c-442c-9429-916003d36597
2014-08-28 13:21:29 +00:00
Jan Möbius
71fd144089 Fixed unsigned signed comparison
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1100 fdac6126-5c0c-442c-9429-916003d36597
2014-07-08 09:25:09 +00:00
Jan Möbius
fb4b159261 Fixed cppcheck unused variable
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1097 fdac6126-5c0c-442c-9429-916003d36597
2014-07-01 08:04:15 +00:00
Matthias Möller
95e8669846 add unittest for textured meshes
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1094 fdac6126-5c0c-442c-9429-916003d36597
2014-06-25 10:50:10 +00:00