Martin Schultz
2e6820a16b
added binary stl file size check after ascii check
2016-08-16 15:06:19 +02:00
Martin Schultz
cc37345556
added include for cstring which should fix compile errors with c++11 and clang
2016-08-15 17:27:55 +02:00
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 Schultz
80192d945b
added code to write faceTexCoords to obj writer.
...
fixes #25
2016-06-29 16:58:59 +02:00
Jan Möbius
984239ade2
Merge branch 'PLY_READER_handle_rn_newlines' into 'master'
...
Handle nr newlines
See merge request !71
2016-05-30 16:31:05 +02:00
Jan Möbius
1ab77e166b
Merge branch 'Throw_error_when_no_readers_are_available' into 'master'
...
Throw error when no readers are available
See merge request !69
2016-05-30 16:27:53 +02:00
Jan Möbius
2822bb61a3
Add plain stl extension to stlwriter
2016-05-30 16:19:55 +02:00
Jan Möbius
b4cea6008d
Handle nr newlines
2016-05-30 16:12:38 +02:00
Jan Möbius
5903657e6a
Throw error when no readers are available
2016-05-30 14:07:11 +02:00
Jan Möbius
bca37d9653
Fixed binary reader errors in ply reader. (Thanks to Michael Kremer for the patch).
2016-05-17 13:15:29 +02:00
Jan Möbius
1c85080a1e
- Updated changelog
...
- Always emit warning
2016-04-15 15:57:07 +02:00
Isaak Lim
6c6ce56c3c
don't emit an error message for every face that could not be added (due to complex elements)
2016-04-15 14:01:11 +02:00
Jan Möbius
17217c405d
Merge branch 'fixDoubleSwap' into 'master'
...
Fix double swap
See merge request !54
2016-04-14 15:42:24 +02:00
Martin Schultz
e7ed1ca1e0
fixes #17 by removing the swap of len in string serialization specification
2016-04-14 12:52:21 +02:00
Max Limper
532f64464a
Not collecting failed faces but directly processing them
2016-04-06 17:28:41 +02:00
Jan Möbius
6a045b5c5e
Obj writer: Fix OBJ writer bug file extension removal (Thanks to Katharina Breininger for the patch)
...
(cherry picked from commit 4cfe75788a5374978555322c596ecdea9909516a)
2016-04-05 15:44:34 +02:00
Jan Möbius
434a0ed1c6
Merge branch 'obj_mat_file' into 'master'
...
Fix OBJ material files and face color (Thanks to Sven-Kristofer Pilz for the patch)
closes #20
See merge request !50
2016-03-23 13:45:56 +01:00
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
Alexander Dielen
04fc8dac85
Fixed CR LF newline handling for binary file headers.
2016-02-11 14:04:52 +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