Commit Graph

111 Commits

Author SHA1 Message Date
Alexandra Heuschling
3f9bdce467 add check for types 2020-11-17 21:26:43 +01:00
Alexandra Heuschling
ede7dca790 Merge branch 'CustomProperties' of https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh into CustomProperties
# Conflicts:
#	src/OpenMesh/Core/IO/writer/OMWriter.cc
2020-11-10 16:48:50 +01:00
Alexandra Heuschling
53e68c18a1 add function to OMReader, to be consistent with OMWriter 2020-11-10 16:43:34 +01:00
Max Lyon
4436f3299d cast to pointers instead of references 2020-11-09 15:28:01 +01:00
Alexandra Heuschling
2d1ebf5a8c implement two ways of finding out the type of property 2020-11-05 21:27:02 +01:00
Alexandra Heuschling
b50dafaf34 add enum PropertyType, so that properties can be restored from .om files 2020-11-05 20:03:51 +01:00
Martin Marinov
8ac6e07c43 Fix a bug where the OM format write code tries to access the second character in property names that have 0 or 1 characters. Also improve the code quality. 2020-06-08 16:37:19 +01:00
Martin Marinov
061bd7ee6a Fix a size_t to int cast warning 2020-05-13 02:14:14 +01:00
Max Lyon
d1da33cd1d write face normals as double 2020-02-10 09:19:09 +01:00
Max Lyon
63dd997489 let OMReader and OMWriter read and write double positions and normals 2020-02-05 22:13:36 +01:00
Max Lyon
ee752ce996 fix unsed variables in writers 2019-12-09 11:15:09 +01:00
Jan Möbius
669b1b789e cppcheck 2019-05-29 08:32:28 +02:00
Jan Möbius
f468efacd0 cppcheck 2019-05-28 14:04:58 +02:00
Jan Möbius
87d2161c5d cppcheck 2019-05-28 13:39:03 +02:00
Jan Möbius
bd0901caa8 overrides 2019-05-28 11:50:49 +02:00
Jan Möbius
3fbc166201 - PLY Reader/Writer: Support for face colors (Thanks to Steve and Barb Demlow for the patch) 2019-02-21 12:49:56 +01:00
Jan Möbius
2c52593cd7 Removed the old svn revision date headers 2019-01-15 11:21:12 +01:00
Jan Möbius
0ee735dba2 - Use Fixed as stream option in OBJ writer to avoid problems with other programs reading scientific notation
closes #60
2018-12-10 10:32:10 +01:00
Max Lyon
f8b906c2d9 add function to access current writer version 2018-10-23 11:20:41 +02:00
Max Lyon
1e9e4d5922 fix copy paste bugs for status writing 2018-10-12 14:05:52 +02:00
Max Lyon
f9b39f21c7 implement status informationr reading and writing 2018-10-12 11:35:18 +02:00
Max Lyon
c0fa8fcdb0 store status slightly better 2018-08-08 14:01:01 +02:00
Max Lyon
a7264c89fb store status 2018-08-08 12:05:57 +02:00
Max Lyon
9bbc296ad0 fix wrong number of written bits for meshes with between 2^15 and 2^16 halfedges 2018-08-08 11:38:42 +02:00
Max Lyon
4142d5f4de fix warnings 2018-08-08 11:09:24 +02:00
Max Lyon
95fceb4545 write halfedge based mesh information to file 2018-08-08 10:58:13 +02:00
Max Lyon
3e4e954730 update om file format verision to 2.0 2018-08-08 10:54:46 +02:00
Jan Möbius
7765cef65a Fixed remaining cppcheck warnings and set max warnings to 0 2018-04-05 09:44:30 +02:00
Jan Möbius
76e33791e0 Fixed some cppcheck warnings 2018-04-05 09:08:44 +02:00
Jan Möbius
1cb02d946f Merge branch 'obj_exporter_fail_if_vertex_color_requested' into 'master'
obj exporter: fail if vertex color export was requested

See merge request OpenMesh/OpenMesh!150
2018-01-26 14:42:47 +01:00
Jan Möbius
0e3491ed88 obj exporter: fail if vertex color export was requested 2018-01-26 13:29:22 +01:00
Jan Möbius
2fb55bc26d Fix vertex texture coordinates export in OBJ exporter (Thanks to Manuel Massing for the patch) 2018-01-26 13:18:18 +01:00
Martin Schultz
b3417e5a88 applied fix for bad or missing vertex tex coords 2017-10-24 17:06:41 +02:00
Jan Möbius
da1ec03c6e OM Writer: Added Mark to the format header to identify end of stream correctly (Thanks to Jamie Kydd for the patch) 2016-12-27 08:10:10 +01:00
Jan Möbius
dc79c22a24 Fixed OMWriter when no faces are available (Thanks to Jamie Kydd for the patch) 2016-12-19 13:24:23 +01:00
Jan Möbius
3b0ee9316d Use static casts 2016-12-08 09:49:41 +01:00
Max Lyon
5cd9448a4e size_t int warning 2016-12-07 17:33:14 +01: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
2822bb61a3 Add plain stl extension to stlwriter 2016-05-30 16:19:55 +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
44cb2ebc4d Fix OBJ material files and face color (Thanks to Sven-Kristofer Pilz for the patch) 2016-02-11 14:49:44 +01:00
Max Lyon
d0033f9966 fix crash in OMWriter when writing an empty mesh with colors 2015-12-14 11:55:28 +01:00
Martin
e6967dfe8b reduced includes by means of static code analysis 2015-11-30 09:48:42 +01: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
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
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