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
Jan Möbius
13904a1516
Simplify reader
2016-01-06 14:26:06 +01:00
Martin Schultz
781063a3c6
* added texCoord3d functions to objloader
...
* added unittest for texcoords3d
* added texcoord3d support to baseimporter
2016-01-05 14:21:46 +01:00
Max Lyon
d0033f9966
fix crash in OMWriter when writing an empty mesh with colors
2015-12-14 11:55:28 +01:00
Jan Möbius
585298cff2
2 missing includes of cstring
2015-11-30 12:20:59 +01: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
Martin Schultz
ebd5180a8f
* made OBJReader reuse stringstream objects.
...
Should speedup Reading on MS Windows especially with lots of materials.
2015-09-11 14:47:02 +02:00
Martin Schultz
c9180795bb
* made Stringstreams in offReader static and reuse them to save performance
2015-09-11 14:34:01 +02:00
Matthias Möller
2ef38f79d8
remove unnecessary c headers
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1333 fdac6126-5c0c-442c-9429-916003d36597
2015-08-28 10:36:32 +00:00
Matthias Möller
000c8ff18e
fix use OM double_t instead of c standard
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1332 fdac6126-5c0c-442c-9429-916003d36597
2015-08-28 09:57:43 +00: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
e9290b468d
remove redundant code
...
refs #2525
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1330 fdac6126-5c0c-442c-9429-916003d36597
2015-08-21 12:44:24 +00:00
Matthias Möller
0741377b89
remove redundant code
...
refs #2525
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1328 fdac6126-5c0c-442c-9429-916003d36597
2015-08-21 12:31:54 +00:00
Matthias Möller
b6c10de490
loaded properties are presistant per default
...
refs #2504
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1325 fdac6126-5c0c-442c-9429-916003d36597
2015-08-03 13:06:58 +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
be465673e6
Fixed bad enum
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1318 fdac6126-5c0c-442c-9429-916003d36597
2015-07-26 20:22:28 +00:00
Matthias Möller
fbda5f8687
change type int8_t to signed char from type char
...
closes #2499
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1305 fdac6126-5c0c-442c-9429-916003d36597
2015-07-08 08:16:59 +00:00
Jan Möbius
43fdc506f2
Add a space after the solid keyword to make some readers happy.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1302 fdac6126-5c0c-442c-9429-916003d36597
2015-07-02 14:52:32 +00:00
Matthias Möller
44800c3efc
unify int8_t/signed char/char in ply reader and writer.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1292 fdac6126-5c0c-442c-9429-916003d36597
2015-06-18 13:17:51 +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
Matthias Möller
ed3155284c
- move iostream from header to source files.
...
- replace some iostreams to o/istreams only
- some minor include fixes
closes #2489
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1278 fdac6126-5c0c-442c-9429-916003d36597
2015-06-09 08:58:41 +00:00
Matthias Möller
b74e1bd7d7
fix cppcheck
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1272 fdac6126-5c0c-442c-9429-916003d36597
2015-06-01 13:23:45 +00:00
Matthias Möller
ae7f75d881
- remove paranthese warning
...
- remove redundant double negation, as the type is already bool
- replaced inline condition with cast
closes #2491
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1270 fdac6126-5c0c-442c-9429-916003d36597
2015-06-01 12:09:32 +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
Matthias Möller
beae0ffce3
extend "can_read" function. returns true, if no explicit filename is given, but just the extension.
...
closes #2431
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1260 fdac6126-5c0c-442c-9429-916003d36597
2015-05-06 14:08:32 +00: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
0a4c1dc206
Get rid of the old ACGMakeFiles
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1253 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:35:09 +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
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
Jan Möbius
8f9682f47e
fix reading mtl files with texture only for obj files
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1222 fdac6126-5c0c-442c-9429-916003d36597
2015-02-18 08:25:32 +00:00
Jan Möbius
f1a9b3a871
Avoid std::endl in the writers to avoid flushing the output stream on every line. (Thanks to Roman Zoller for the hint).
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1209 fdac6126-5c0c-442c-9429-916003d36597
2015-01-19 17:37:47 +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
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
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
Matthias Möller
d633dfc737
- change name of the types "True" and "False" to "TrueType" and "FalseType" to clearify, that these are types
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1137 fdac6126-5c0c-442c-9429-916003d36597
2014-08-11 09:47:41 +00:00
Matthias Möller
208e753e89
remove excluding condition
...
Thanks to Javier Granado for the hint
closes #2247
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1114 fdac6126-5c0c-442c-9429-916003d36597
2014-07-25 09:13:33 +00:00
Jan Möbius
ff2053119e
More cppcheck fixes in OM
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1075 fdac6126-5c0c-442c-9429-916003d36597
2014-05-30 10:15:12 +00:00
Jan Möbius
dfa030339b
Silence cppcheck for now
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1055 fdac6126-5c0c-442c-9429-916003d36597
2014-05-09 13:11:11 +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
48f18d6410
PLY Reader Fix: locking up when loading some binary files ( Thanks to Peter Newman for the patch)
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1042 fdac6126-5c0c-442c-9429-916003d36597
2014-05-07 11:43:53 +00:00
Jan Möbius
1d121ee8c7
Removed unused variable
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1001 fdac6126-5c0c-442c-9429-916003d36597
2014-02-28 08:06:08 +00:00
Jan Möbius
377bf721ac
Added simple VTK writer writing only vertices and faces (Thanks to Vladimir Chalupecky for the code). closes #2039
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1000 fdac6126-5c0c-442c-9429-916003d36597
2014-02-28 07:18:21 +00:00
Jan Möbius
383b75b20b
Fixed material writer using wrong stream (Thanks to Vladimir Chalupecky for the fix). closes #2037
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@999 fdac6126-5c0c-442c-9429-916003d36597
2014-02-28 07:15:27 +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