Commit Graph

333 Commits

Author SHA1 Message Date
Martin Heistermann
d554a90d43 OBJWriter performance: Add map from color to material index, avoids quadratic performance 2022-08-29 18:28:04 +02:00
Martin Heistermann
b2bb6a32a7 Fix some "unused parameter" warnings. 2022-04-06 17:16:59 +02:00
Jan Möbius
7e670896a6 - added param 'texture_file' to the Options class, it specifies the path to the texture file
- added param 'material_file_extension' to the Options class, it specifies the material file suffix, default is ".mat" as it was before, we needed it becuase Blender expects ".mtl"
- removed default and copy constructor and destructor as well as assignment operator, because these are not necessary here, see https://en.cppreference.com/w/cpp/language/rule_of_three

(Thanks to Philipp Auersperg-Castell for the patch )
2022-03-07 10:30:52 +01:00
Jan Möbius
9202308922 Moved inl file to hh 2022-02-23 13:05:55 +01:00
Jan Möbius
7c5363916d Updated license header 2022-01-18 09:50:04 +01:00
Jan Möbius
3ed5534abd Merge branch 'FixBinaryWarnings' into 'master'
fix warnings in binary

See merge request OpenMesh/OpenMesh!312
2022-01-17 08:16:32 +00:00
Max Lyon
e989347184 fix warnings in binary 2022-01-14 17:20:43 +01:00
Jan Möbius
d74c7aa020 Fixed OBJ reader not reading materials which start with a leading space 2021-09-24 12:56:39 +02:00
Jan Möbius
fad00c8eb9 Revert "Fixed OBJ reader not reading materials which start with a leading space"
This reverts commit f5e5aa83b1.
2021-09-24 12:55:54 +02:00
Jan Möbius
f5e5aa83b1 Fixed OBJ reader not reading materials which start with a leading space 2021-09-24 11:10:47 +02:00
Jan Möbius
4fc8d8bdc0 Merge branch 'cppcheck_fix' into 'master'
Cppcheck fix

See merge request OpenMesh/OpenMesh!306
2021-06-02 07:53:00 +00:00
Jan Möbius
d9679b512f Fixed cppcheck warning, overwrite 2021-06-01 14:10:25 +02:00
Jan Möbius
ee99f0bb04 Fixed cppcheck warning, variable shadowing 2021-06-01 14:03:05 +02:00
Jan Möbius
48c2e464cb PLY writer: Added option to choose if we want to write texture coordinates as uv or ply (Thanks to Ossi Saukko for the patch) 2021-06-01 12:47:22 +02:00
Jan Möbius
7bf1b94224 Fixed cppcheck warning 2021-04-27 12:25:24 +02:00
Max Lyon
90da974598 update which properties are registered 2021-03-16 12:16:37 +01:00
Max Lyon
d017c03c62 disable binary<std::vector<T>> specialization if T is not default constructible 2021-03-15 17:11:57 +01:00
Max Lyon
2a4fd0b887 rename string_for_value_type to type_identifier 2021-03-15 16:15:24 +01:00
Max Lyon
453b5eba67 fix size_of in binary<vector> 2021-03-15 14:15:37 +01:00
Max Lyon
7f6e86ff62 simplify how names for property types are generated 2021-03-15 14:15:18 +01:00
Max Lyon
39ba13266b remove binary specialization for vector of string 2021-03-15 13:55:43 +01:00
Alexandra Heuschling
06d770d1b4 add support for properties of std::vector<bool>... 2021-03-15 01:50:35 +01:00
Max Lyon
59677ea03e improve binary documentation 2021-03-02 11:14:55 +01:00
Max Lyon
f21bbed42a minor code improvements in binary struct 2021-03-02 10:28:16 +01:00
Max Lyon
657128e6d4 store and restore individual elements of vectors if the data is not densely packed in the vector 2021-03-02 02:11:18 +01:00
Max Lyon
414c3507f2 only add properties with property creator when they not already exist 2021-03-02 01:22:56 +01:00
Max Lyon
f004b02505 prevent access to first element of vector when vector is empty when writing properties 2021-03-01 21:12:43 +01:00
Alexandra Heuschling
d1cad96bfc clean up code 2021-02-26 19:15:40 +01:00
Alexandra Heuschling
6eb87d89fd clean up old code 2021-02-26 19:13:09 +01:00
Alexandra Heuschling
5c0066b490 adapt store/restore functions as well as size of, so that
for std::vector the size is stored if desired
2021-02-26 19:04:20 +01:00
Alexandra Heuschling
cf45a5d3cc support each type of std::vector for storing and restoring 2021-02-26 19:01:23 +01:00
Max Lyon
cb1365f199 fix indentation 2021-01-19 15:39:58 +01:00
Alexandra Heuschling
cc75d6a040 clean up code 2021-01-18 16:02:31 +01:00
Alexandra Heuschling
74132eff65 support now face coords for OM reader/writer 2021-01-13 14:15:08 +01:00
Alexandra Heuschling
bdd10562d2 add binary for handles and add string recognition support for meshhandle 2021-01-06 23:30:31 +01:00
Alexandra Heuschling
6932a33414 added static function string_for_value_type (void) to binary struct
and adapted each instance
2021-01-05 17:50:52 +01:00
Alexandra Heuschling
d835958b6b add binary struct for openmesh vector of size 5 2021-01-05 17:49:21 +01:00
Alexandra Heuschling
ef529c8b52 refactor functionality. Types can now be registered 2020-12-21 15:22:46 +01:00
Alexandra Heuschling
1aa8e25bb8 fix indentation and add comments 2020-12-04 17:26:37 +01:00
Alexandra Heuschling
3b6424c1a7 add support for signed char 2020-12-01 16:34:40 +01:00
Max Lyon
fcb7680610 use omlog instead of clog 2020-11-30 20:52:06 +01:00
Max Lyon
9c4679f903 add missing endl 2020-11-30 20:51:56 +01:00
Alexandra Heuschling
11c092e8e2 add support for vector types 2020-11-29 17:38:34 +01:00
Alexandra Heuschling
0b18560655 remove debugg output 2020-11-29 17:37:46 +01:00
Alexandra Heuschling
8b79e67a39 add if-statement so that reader still supports older versions 2020-11-26 17:51:43 +01:00
Alexandra Heuschling
e81a771656 update version of OM file 2020-11-26 17:50:02 +01:00
Alexandra Heuschling
5af470edd5 move function from OMFormat.hh to typename.hh 2020-11-26 17:48:53 +01:00
Alexandra Heuschling
2f6fde338d add property to be able to restore data from file 2020-11-17 21:35:07 +01:00
Alexandra Heuschling
3f9bdce467 add check for types 2020-11-17 21:26:43 +01:00
Alexandra Heuschling
6ba0ccc175 add helper functions for type recognition 2020-11-17 21:25:30 +01:00