Commit Graph

27 Commits

Author SHA1 Message Date
Martin Schultz
fc04bac1a1 made the stl reader check for ascii file keyword instead of computing binary size 2016-08-15 17:14:25 +02:00
Martin
e6967dfe8b reduced includes by means of static code analysis 2015-11-30 09:48:42 +01:00
Martin
f28aa26ab2 closes #1
refs !1
*changed the static variables to be common variables.
If one opens a lot of files, using thread local could be an alternative as long as the compiler supports it.
2015-09-14 13:26:19 +02:00
Martin Schultz
2dce1916c5 * made STLReader reuse stringstreams 2015-09-11 15:41:16 +02:00
Jan Möbius
fd4bcb39ea Typo
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1258 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 13:07:46 +00:00
Jan Möbius
07ad20793d Fixed bad typo in comment
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1257 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:54:17 +00:00
Jan Möbius
83486e0b5f Relicense to BSD
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1252 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:33:32 +00:00
Jan Möbius
b3778b230f Updated copyright headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1188 fdac6126-5c0c-442c-9429-916003d36597
2015-01-05 15:34:10 +00:00
Jan Möbius
5104bf5c42 Silence most readers/writers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1053 fdac6126-5c0c-442c-9429-916003d36597
2014-05-09 12:44:18 +00:00
Jan Möbius
68a3ff3136 The annual License Header Bump (Sorry for the rebuilds ;-) )
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@990 fdac6126-5c0c-442c-9429-916003d36597
2014-02-05 09:01:07 +00:00
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
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
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
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
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
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
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
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
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
efa67fbcfc Commit of the debugged version of Alex' improvement to OpenMesh. File i/o is now done via istream/ostream instances such that direct buffer writing to files (serialization) will also be possible in future releases.
Code is tested.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@221 fdac6126-5c0c-442c-9429-916003d36597
2009-11-17 13:54:16 +00:00
Jan Möbius
5246b77da6 Updated License to LGPL3 with additional template and macro exceptions
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@137 fdac6126-5c0c-442c-9429-916003d36597
2009-06-04 08:46:29 +00:00
Jan Möbius
ea844d6788 Changed OpenMesh directory structure
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@106 fdac6126-5c0c-442c-9429-916003d36597
2009-04-30 12:41:50 +00:00