Isaak Lim
733cb52240
fixed a bug in the STLReader where normals could be set for invalid face handles
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@963 fdac6126-5c0c-442c-9429-916003d36597
2013-09-26 13:02:09 +00:00
Isaak Lim
b643b26f2d
- the OpenMesh STLReader now also reads face normals if requested
...
- added corresponding unittests
- removed duplicate code
closes #1719
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@962 fdac6126-5c0c-442c-9429-916003d36597
2013-09-26 10:35:13 +00:00
Jan Möbius
5094916ff6
Bugfix : If bool property is written and conatins 0x20 in file, reader will fail (Thanks to Simon Flöry for the patch)
...
Unittest: Added test case for this bug
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@957 fdac6126-5c0c-442c-9429-916003d36597
2013-09-17 13:09:19 +00:00
Jan Möbius
5822351444
Removed unused code
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@943 fdac6126-5c0c-442c-9429-916003d36597
2013-08-21 11:34:24 +00:00
Jan Möbius
29011e25d2
Updated license headers
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@922 fdac6126-5c0c-442c-9429-916003d36597
2013-08-11 10:26:11 +00:00
Matthias Möller
bdf48be7fe
type conversion
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@880 fdac6126-5c0c-442c-9429-916003d36597
2013-07-26 15:49:14 +00:00
Jan Möbius
0d617dfc5e
Fixed some conversions in OM Reader
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@852 fdac6126-5c0c-442c-9429-916003d36597
2013-07-23 20:17:42 +00:00
Jan Möbius
6e62de90d4
Fixed size_t conversion warnings in OBJReader
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@843 fdac6126-5c0c-442c-9429-916003d36597
2013-07-23 13:32:21 +00:00
Isaak Lim
83722b8e5f
- fixed a bug with OBJReader that prevented the material color to be loaded correctly
...
- added a corresponding unittest
Thanks for the patch by Karthik Nathan
closes #1473
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@823 fdac6126-5c0c-442c-9429-916003d36597
2013-04-25 11:03:53 +00:00
Isaak Lim
837c866abb
- added color float support for the OM OFF reader/writer
...
- added corresponding unittests
- small fix for the PLY writer
Note that for reading binary OFF files with color floats, the user has to set the flag, that floats are expected
closes #1410
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@818 fdac6126-5c0c-442c-9429-916003d36597
2013-03-04 16:36:20 +00:00
Isaak Lim
57b3908771
- the OM PLY writer and reader can now also handle color floats
...
- added corresponding unittests
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@817 fdac6126-5c0c-442c-9429-916003d36597
2013-03-01 15:32:46 +00:00
Jan Möbius
2d754b31be
Missing include, preventing build on VS2012
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@799 fdac6126-5c0c-442c-9429-916003d36597
2013-01-30 15:22:31 +00:00
Jan Möbius
eec3ac3b98
Made STL Reader work, with the clear = false flag.
...
Redundant lookup removed.
( Thanks to Peter Newman for the patch)
closes #1370
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@783 fdac6126-5c0c-442c-9429-916003d36597
2013-01-08 07:24:43 +00:00
Jan Möbius
484d6529f8
Fixed bug in OBJ reader, where some faces could be missing
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@777 fdac6126-5c0c-442c-9429-916003d36597
2012-12-11 08:44:02 +00:00
Isaak Lim
fcd018e85a
added documentation note (regarding std::ios_base::openmode flags) for read with istream
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@752 fdac6126-5c0c-442c-9429-916003d36597
2012-10-18 11:09:34 +00:00
Isaak Lim
6aa98b5b7c
- now the OM reader also checks user options
...
- added some corresponding unittests
refs #1077
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@743 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 13:25:36 +00:00
Isaak Lim
b409f83040
- the PLY reader now checks the options set by the user and will skip components that are not requested
...
- modified the loading unittest to test this behavior
refs #1077
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@741 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 11:44:29 +00:00
Jan Möbius
0411effc88
Missed return of options
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@739 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 09:49:14 +00:00
Jan Möbius
19ceb62d1e
Made unittest for obj crash when colors are requested but not available
...
Made OBJ reader aware of user requests (Warning! Old default behaviour was wrong, because the reader read everything, without checking for the user options!)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@738 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 09:45:20 +00:00
Jan Möbius
f3312397a5
Updated License Headers
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@736 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 07:30:49 +00:00
Isaak Lim
7d50c6def6
- added the functionality to read meshes from istreams with the STLReader
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@704 fdac6126-5c0c-442c-9429-916003d36597
2012-09-26 15:02:18 +00:00
Mike Kremer
5834e277f7
- add dll export macros
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@699 fdac6126-5c0c-442c-9429-916003d36597
2012-09-24 10:10:22 +00:00
Jan Möbius
a1340983b1
Export reader and writer symbols to dll
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@695 fdac6126-5c0c-442c-9429-916003d36597
2012-09-23 14:49:46 +00:00
Jan Möbius
46ab02296e
Fix: OM Reader used different types on 32/64-bit systems. (Thanks to Martin Bayer for the patch)
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@620 fdac6126-5c0c-442c-9429-916003d36597
2012-07-17 10:13:27 +00:00
Jan Möbius
85bfcb2064
Fixed cppcheck warning
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@604 fdac6126-5c0c-442c-9429-916003d36597
2012-06-21 11:56:36 +00:00
Matthias Möller
6d4008c948
- add: unittests for texcoords and normals
...
- add: set normals per halfedge if requested
refs #838
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@596 fdac6126-5c0c-442c-9429-916003d36597
2012-06-18 13:14:58 +00:00
Jan Möbius
b1dfc57365
Cleaned up indentation to be readable again
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@586 fdac6126-5c0c-442c-9429-916003d36597
2012-05-22 09:15:15 +00:00
Jan Möbius
a3c8369a27
Fixed stl reader by porting it to std string. It had serious problems in utf8 environments
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@583 fdac6126-5c0c-442c-9429-916003d36597
2012-05-08 15:05:10 +00:00
Jan Möbius
d8a2c1daff
Fixed cppcheck warning about possible null pointer reference
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@573 fdac6126-5c0c-442c-9429-916003d36597
2012-04-05 15:10:37 +00:00
Jan Möbius
3c0e93e261
Bugfix: File handle from opening binary STL file isn't released. (Thanks to Peter Newmann for the path) closes #493
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@567 fdac6126-5c0c-442c-9429-916003d36597
2012-03-30 09:47:37 +00:00
Jan Möbius
704fffc423
Fixed more size_t warnings
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@559 fdac6126-5c0c-442c-9429-916003d36597
2012-03-20 09:32:02 +00:00
Jan Möbius
7c4273dd78
Fixed cppcheck warnings
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@485 fdac6126-5c0c-442c-9429-916003d36597
2012-01-12 09:15:18 +00:00
Jan Möbius
a6328d0808
Fixed warnings
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@484 fdac6126-5c0c-442c-9429-916003d36597
2012-01-10 15:38:00 +00:00
Jan Möbius
43f44c480f
Fixed warnings of cppcheck
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@482 fdac6126-5c0c-442c-9429-916003d36597
2012-01-06 10:53:22 +00:00
Jan Möbius
73f5a1fe89
PLY Writer normal support (Thanks to Bruno Dutailly)
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@478 fdac6126-5c0c-442c-9429-916003d36597
2011-12-01 16:55:24 +00:00
Jan Möbius
64f70809ad
Handle objs without faces(Thanks to Bruno Dutailly)
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@476 fdac6126-5c0c-442c-9429-916003d36597
2011-12-01 16:23:29 +00:00
Jan Möbius
d361e5dbdc
OBJ Reader support for vertex colors after vertices or Vertex colors as separate lines. (Thanks to Bruno Dutailly)
...
Added unittests for vertex colors
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@475 fdac6126-5c0c-442c-9429-916003d36597
2011-12-01 16:16:29 +00:00
Jan Möbius
a95789f417
Correct includes to build windows trim function
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@470 fdac6126-5c0c-442c-9429-916003d36597
2011-11-28 11:46:16 +00:00
Jan Möbius
300b400a45
Disable trimming as it does not build on windows
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@469 fdac6126-5c0c-442c-9429-916003d36597
2011-11-28 10:57:28 +00:00
Jan Möbius
0e08dce166
More includes required for windows
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@468 fdac6126-5c0c-442c-9429-916003d36597
2011-11-28 10:50:42 +00:00
Jan Möbius
9942449614
More includes required for windows
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@467 fdac6126-5c0c-442c-9429-916003d36597
2011-11-28 10:45:40 +00:00
Jan Möbius
1b3c96b976
Added trim functions and use it in ply reader
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@466 fdac6126-5c0c-442c-9429-916003d36597
2011-11-28 10:38:24 +00:00
Jan Möbius
975b766aaa
Support normals in ply format
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@463 fdac6126-5c0c-442c-9429-916003d36597
2011-11-25 15:08:38 +00:00
Mike Kremer
7f654f68fe
Add empty mesh when reading empty stl file.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@399 fdac6126-5c0c-442c-9429-916003d36597
2011-07-13 15:10:37 +00:00
Jan Möbius
92d0d9b3b6
Fixed crash in OFF Reader with empty lines (Thanks to R.Schneider for the fix)
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@395 fdac6126-5c0c-442c-9429-916003d36597
2011-06-15 06:41:52 +00:00
Mike Kremer
c1017f5a08
Avoid compiler error because of extra comma
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@394 fdac6126-5c0c-442c-9429-916003d36597
2011-06-02 13:33:49 +00:00
Jan Möbius
4fdd4c2adc
Updated license headers
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@362 fdac6126-5c0c-442c-9429-916003d36597
2011-01-26 09:21:12 +00:00
Jan Möbius
154d1b31ba
Read diffuse colors from vertices in ply
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@345 fdac6126-5c0c-442c-9429-916003d36597
2010-11-18 07:20:06 +00:00
Jan Möbius
34141f8d9a
Changed license Header to 2010
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@325 fdac6126-5c0c-442c-9429-916003d36597
2010-06-17 10:45:58 +00:00
Mike Kremer
0922b1bd03
Suggesting a slightly more readable representation of a tab...
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@272 fdac6126-5c0c-442c-9429-916003d36597
2010-02-23 12:15:05 +00:00