Commit Graph

278 Commits

Author SHA1 Message Date
Max Lyon
3583c77f3d add methods to importer to create a mesh based on halfedges 2018-08-08 10:58:51 +02:00
Max Lyon
95fceb4545 write halfedge based mesh information to file 2018-08-08 10:58:13 +02:00
Max Lyon
b511128131 add methods to exporter for accessing halfedges for vertices and faces and for accessing next halfface, incident vertex and incident face for halfedges 2018-08-08 10:55:44 +02:00
Max Lyon
3e4e954730 update om file format verision to 2.0 2018-08-08 10:54:46 +02:00
Alexander Dielen
c79e5b2e63 register vtk writer for static builds 2018-07-05 17:00:02 +02:00
Jan Möbius
c68c630eab Prevent endless loop in PLY reader when unknown property types are read. 2018-06-18 13:16:33 +02:00
Jan Möbius
2b21fabfdd Allowing the PLY reader to read custom face ( Thanks to morgan Leborgne for the patch) 2018-05-29 15:16:37 +02:00
Jan Möbius
24a1eafc9a Fixed slow OBJ reader (Thanks to Etienne Danvoye for the patch)
Updated changelog
2018-05-29 07:42:01 +02:00
Jan Möbius
f308270716 Work around ptr_fun deprecation (Thanks to Andreas Fabri for the patch) 2018-04-18 08:41:41 +02:00
Jan Möbius
0441ba5fa8 Work around ptr_fun deprecation (Thanks to Andreas Fabri for the patch) 2018-04-18 08:41:17 +02:00
Jan Möbius
018652e5a4 Only Issue Warning if compile Order for MeshIO.hh is violated. Remove Check if errors are reported. 2018-04-05 14:09:47 +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
Max Lyon
834397211d remove compile order check 2018-03-02 18:21:17 +01:00
Jan Möbius
958b7a1c09 Merge branch 'implicit_fallthrough' into 'master'
Fix implicit fallthrough warning on gcc

See merge request OpenMesh/OpenMesh!152
2018-01-26 16:06:18 +01: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
d1088ae2e5 Fix implicit fallthrough warning on gcc 2018-01-26 13:38:21 +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 Heistermann
f714802c8d Add missing break statements in OM::IO::restore 2017-11-08 11:18:26 +01:00
Martin Schultz
b3417e5a88 applied fix for bad or missing vertex tex coords 2017-10-24 17:06:41 +02:00
Martin Schultz
41aab48143 modified the add_face function of importerT to always return a valid
FaceHandle
2017-06-29 13:38:22 +02:00
Michael Krämer
c23ed24aa0 return error when reaching EOF, skip reading extra elements after 'FACE' 2017-02-03 18:54:01 +01:00
Michael Krämer
1ae04a2284 adding support for additional elements 2017-01-20 17:39:09 +01: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
Jan Möbius
f377c86a43 Merge branch 'fixOBJWriterMissingTexcoords' into 'master'
added code to write faceTexCoords to obj writer.

fixes #25 
* Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.
* Added functionality to store FaceTexCoords to objwriter
* Added unittest to write and read faceTexcoords with a test obj file

See merge request !73
2016-10-27 14:31:59 +02:00
Jan Möbius
b7aabbd912 Fixed some warnings 2016-10-24 14:01:06 +02:00
David Bommes
e11f553c92 added missing ifdef for debug 2016-10-17 17:43:48 +02:00
Max Limper
a6da330b41 resolved conflict 2016-10-02 11:55:23 +02:00
Jan Möbius
29ba85a7f0 Merge branch 'OBJ-loader-check-ranges' into 'master'
range check for vertex colors and normals in OBJ loader

This merge request adds explicit range checks and error reporting for the reading of colors and normals. The code is copied from texture coordinates, where a similar check already existed.

See merge request !92
2016-10-02 09:22:13 +02:00
Max Limper
782adb7b0a fixed handling of negative indices in OBJ loader 2016-10-01 20:31:16 +02:00
Max Limper
c577810d47 range check for vertex colors and normals in OBJ loader 2016-10-01 19:43:46 +02:00
Max Limper
d20d6a83e4 Fixed comment in OBJ loader 2016-10-01 18:21:18 +02:00
Max Limper
f53429fdeb Fixed broken indices for some cases of OBJ parsing by using two passes 2016-08-30 17:25:48 +02:00
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