Commit Graph

204 Commits

Author SHA1 Message Date
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
3102340852 Silence more warnings in OFF PLY and STL writer
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@845 fdac6126-5c0c-442c-9429-916003d36597
2013-07-23 14:03:45 +00:00
Jan Möbius
68c881c0d1 Fix casts in OBJ Writer
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@844 fdac6126-5c0c-442c-9429-916003d36597
2013-07-23 13:46:43 +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
Jan Möbius
e8e626037f Silence some conversion warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@842 fdac6126-5c0c-442c-9429-916003d36597
2013-07-23 13:27:49 +00:00
Jan Möbius
172758cffa Get rid of some size_t warnings in OpenMesh
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@839 fdac6126-5c0c-442c-9429-916003d36597
2013-07-22 14:29:52 +00:00
Jan Möbius
7d9ada2e55 Fixed some clang compiler warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@831 fdac6126-5c0c-442c-9429-916003d36597
2013-06-05 08:23:24 +00:00
Jan Möbius
ee648b6da1 Try to get rid of memory leak in IOManager
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@830 fdac6126-5c0c-442c-9429-916003d36597
2013-06-05 07:33:16 +00:00
Isaak Lim
c15f0f60f5 - fixed writing face indices in different configurations regarding vertex texture coordinates and vertex normals
- adjusted the intial patch provided by Robert Luo

refs #1560

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@824 fdac6126-5c0c-442c-9429-916003d36597
2013-05-16 11:11:41 +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
7aab2ad475 updated the documentation for IO Options
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@819 fdac6126-5c0c-442c-9429-916003d36597
2013-03-04 17:09:45 +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
Isaak Lim
2857da21b6 - added a ColorFloat flag to Options, which can be set to write and read RGBA values as float instead of unsigned char
- added color_is_float function which checks if the ColorFloat flag was set

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@816 fdac6126-5c0c-442c-9429-916003d36597
2013-02-27 13:30:37 +00:00
Isaak Lim
951aa17bd9 - added color_cast from Vec4f to Vec4i and Vec4ui
- added colori and colorAi functions to BaseExporter which return Vec3i and Vec4i respectively
- adjusted the PLYWriter to use colori and colorAi for writing ascii files

refs #1405

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@815 fdac6126-5c0c-442c-9429-916003d36597
2013-02-27 13:25:42 +00:00
Isaak Lim
708af7068f patch from a generous contributor for the OpenMesh PLY writer works as expected
refs #1405

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@811 fdac6126-5c0c-442c-9429-916003d36597
2013-02-26 12:52:19 +00:00
Isaak Lim
740d23ed36 - read_mesh now throws a compile error if an Options::Flag enum is passed as an argument instead of an Options object
- added a unit test for writing and reading vertex colors to and from an OFF file. The default color type Vec3uc from DefaultTraits in Traits.hh is used.

refs #1404

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@809 fdac6126-5c0c-442c-9429-916003d36597
2013-02-25 13:30:56 +00:00
Jan Möbius
6ba9774194 Fixed various warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@803 fdac6126-5c0c-442c-9429-916003d36597
2013-02-18 17:17:01 +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
Jan Möbius
91b0ac9df0 Fixed missing cast in importer which lead to problems when using different vector type. (Thanks to Mario Deuss for the fix)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@776 fdac6126-5c0c-442c-9429-916003d36597
2012-12-10 15:22:00 +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
953529bf7d fixed doxygen warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@750 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 15:01:06 +00:00
Isaak Lim
176dab0a80 only set precision for writers that write ascii
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@749 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 14:46:52 +00:00
Isaak Lim
1707f09f0d - added precision option to MeshIO and IOManager
refs #1157

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@748 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 13:52:32 +00:00
Isaak Lim
d370b6e06c - added some documentation to the BaseWriter
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@747 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 10:42:13 +00:00
Isaak Lim
fc7acde663 - added precision option to openmesh writers
refs #1075

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@746 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 10:28:14 +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
10b271fb56 - added functionaliy for the STLWriter to also write to ostreams
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@705 fdac6126-5c0c-442c-9429-916003d36597
2012-09-27 10:18:43 +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
c656256933 Fixed debug build crash on mac, reading from stringstream into emtpy string crashed when compiling with clang
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@579 fdac6126-5c0c-442c-9429-916003d36597
2012-05-02 12:34:42 +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
75acdcf860 Making Binary IO readers multi-thread safe. (Thanks to Dominic Genest for the patch)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@571 fdac6126-5c0c-442c-9429-916003d36597
2012-04-05 14:26:34 +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
a28d019323 First step to xcode 4.3 compatibility
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@551 fdac6126-5c0c-442c-9429-916003d36597
2012-03-02 14:46:15 +00:00
Mike Kremer
94804e95f7 Write color property as correct data type to file. Closes #262.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@529 fdac6126-5c0c-442c-9429-916003d36597
2012-01-24 12:22:27 +00:00
Jan Möbius
66d89e707f Output written bytes to log in OMWriter
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@495 fdac6126-5c0c-442c-9429-916003d36597
2012-01-13 15:01:55 +00:00