Commit Graph

388 Commits

Author SHA1 Message Date
Isaak Lim
57b3908771 - the OM PLY writer and reader can now also handle color floats
- added corresponding unittests

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@817 fdac6126-5c0c-442c-9429-916003d36597
2013-03-01 15:32:46 +00:00
Isaak Lim
2857da21b6 - added a ColorFloat flag to Options, which can be set to write and read RGBA values as float instead of unsigned char
- added color_is_float function which checks if the ColorFloat flag was set

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@816 fdac6126-5c0c-442c-9429-916003d36597
2013-02-27 13:30:37 +00:00
Isaak Lim
951aa17bd9 - added color_cast from Vec4f to Vec4i and Vec4ui
- added colori and colorAi functions to BaseExporter which return Vec3i and Vec4i respectively
- adjusted the PLYWriter to use colori and colorAi for writing ascii files

refs #1405

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@815 fdac6126-5c0c-442c-9429-916003d36597
2013-02-27 13:25:42 +00:00
Isaak Lim
fcc40c78c2 added color_cast from Vec3f and Vec4f to Vec3i and Vec3ui
refs #1405

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@812 fdac6126-5c0c-442c-9429-916003d36597
2013-02-26 14:33:29 +00:00
Isaak Lim
708af7068f patch from a generous contributor for the OpenMesh PLY writer works as expected
refs #1405

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@811 fdac6126-5c0c-442c-9429-916003d36597
2013-02-26 12:52:19 +00:00
Isaak Lim
740d23ed36 - read_mesh now throws a compile error if an Options::Flag enum is passed as an argument instead of an Options object
- added a unit test for writing and reading vertex colors to and from an OFF file. The default color type Vec3uc from DefaultTraits in Traits.hh is used.

refs #1404

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@809 fdac6126-5c0c-442c-9429-916003d36597
2013-02-25 13:30:56 +00:00
Hans-Christian Ebke
9a69c39b60 Undo: Some singular changes. (Sorry about that.)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@808 fdac6126-5c0c-442c-9429-916003d36597
2013-02-20 12:25:03 +00:00
Hans-Christian Ebke
7d9d01a7e2 PropertyManager: Added PropertyManager::propertyExists() method.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@807 fdac6126-5c0c-442c-9429-916003d36597
2013-02-20 12:19:26 +00:00
Hans-Christian Ebke
152719a838 Some singular changes.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@806 fdac6126-5c0c-442c-9429-916003d36597
2013-02-20 12:19:25 +00:00
Jan Möbius
e826572afc Fixed warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@805 fdac6126-5c0c-442c-9429-916003d36597
2013-02-19 14:43:27 +00:00
Jan Möbius
da9bfe2578 Fixed various warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@804 fdac6126-5c0c-442c-9429-916003d36597
2013-02-18 17:19:41 +00:00
Jan Möbius
6ba9774194 Fixed various warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@803 fdac6126-5c0c-442c-9429-916003d36597
2013-02-18 17:17:01 +00:00
Jan Möbius
2d754b31be Missing include, preventing build on VS2012
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@799 fdac6126-5c0c-442c-9429-916003d36597
2013-01-30 15:22:31 +00:00
Jan Möbius
9d1d1a1a0d Fixed another static occurence in the Hausdorff module
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@798 fdac6126-5c0c-442c-9429-916003d36597
2013-01-30 07:03:04 +00:00
Jan Möbius
1dfb93c687 Fixed another static occurence in the Hausdorff module
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@797 fdac6126-5c0c-442c-9429-916003d36597
2013-01-30 07:01:51 +00:00
Jan Möbius
9ed294c929 Make Hausdorff module thread safe. Removed static point vector. (Thanks to Falko Löffler for the fix)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@796 fdac6126-5c0c-442c-9429-916003d36597
2013-01-29 09:00:06 +00:00
Jan Möbius
feaf69d499 Wrong documentation about return type. closes #1387
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@795 fdac6126-5c0c-442c-9429-916003d36597
2013-01-23 09:32:00 +00:00
Jan Möbius
eec3ac3b98 Made STL Reader work, with the clear = false flag.
Redundant lookup removed. 
( Thanks to Peter Newman for the patch)

closes #1370

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@783 fdac6126-5c0c-442c-9429-916003d36597
2013-01-08 07:24:43 +00:00
Jan Möbius
b025acaaa6 Make delete_face function work without edge status
Added unittests for delete_face



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@782 fdac6126-5c0c-442c-9429-916003d36597
2013-01-06 15:51:58 +00:00
Jan Möbius
7bb796cd7c Moved version to 2.4
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@780 fdac6126-5c0c-442c-9429-916003d36597
2012-12-20 10:51:47 +00:00
Jan Möbius
54535f2da9 Prepare 2.3.1 for release
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@779 fdac6126-5c0c-442c-9429-916003d36597
2012-12-20 08:13:53 +00:00
Jan Möbius
484d6529f8 Fixed bug in OBJ reader, where some faces could be missing
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@777 fdac6126-5c0c-442c-9429-916003d36597
2012-12-11 08:44:02 +00:00
Jan Möbius
91b0ac9df0 Fixed missing cast in importer which lead to problems when using different vector type. (Thanks to Mario Deuss for the fix)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@776 fdac6126-5c0c-442c-9429-916003d36597
2012-12-10 15:22:00 +00:00
Jan Möbius
0f9d7dcb41 Replaced fabs by the std methods to fix errors when using norms with double vectors
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@775 fdac6126-5c0c-442c-9429-916003d36597
2012-12-05 17:59:57 +00:00
Jan Möbius
7540cfabca Fixed copy and paste typo in split_copy for face handle
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@773 fdac6126-5c0c-442c-9429-916003d36597
2012-11-30 07:16:24 +00:00
Jan Möbius
618f7df524 Tried to fix documentation
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@772 fdac6126-5c0c-442c-9429-916003d36597
2012-11-27 12:08:12 +00:00
Jan Möbius
824ee5db29 More documentation for the is_boundary functions
Unittest for is_boundary (Vertices, faces)

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@770 fdac6126-5c0c-442c-9429-916003d36597
2012-11-27 11:19:22 +00:00
Jan Möbius
0ef541d266 Return vertex handles of newly added vertices in split and split copy when passing points instead of handles
closes #1316



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@769 fdac6126-5c0c-442c-9429-916003d36597
2012-11-26 12:52:24 +00:00
Jan Möbius
8a650cd761 Bumped version to 2.4 after release
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@764 fdac6126-5c0c-442c-9429-916003d36597
2012-11-12 14:46:20 +00:00
Jan Möbius
dc094d817d Docu fix
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@760 fdac6126-5c0c-442c-9429-916003d36597
2012-11-06 07:41:28 +00:00
Jan Möbius
b93dffdc67 Fixed warnings in Composite computation (extra;)
Fixed missing this pointer in PolyMeshT.hh
Added unittest for dihedral angle function


git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@757 fdac6126-5c0c-442c-9429-916003d36597
2012-11-02 07:28:25 +00:00
Isaak Lim
cb981241c4 - fixed typedef problems
- split unittests for uniform and adaptive subdivider

refs #261

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@756 fdac6126-5c0c-442c-9429-916003d36597
2012-10-31 11:58:22 +00:00
Isaak Lim
485356abab - removed a wrong assertion in the refine method for vector handles
- added unittests for the adaptive composite subdivider

closes #261

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@755 fdac6126-5c0c-442c-9429-916003d36597
2012-10-31 10:29:40 +00:00
Isaak Lim
fcd018e85a added documentation note (regarding std::ios_base::openmode flags) for read with istream
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@752 fdac6126-5c0c-442c-9429-916003d36597
2012-10-18 11:09:34 +00:00
Isaak Lim
953529bf7d fixed doxygen warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@750 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 15:01:06 +00:00
Isaak Lim
176dab0a80 only set precision for writers that write ascii
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@749 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 14:46:52 +00:00
Isaak Lim
1707f09f0d - added precision option to MeshIO and IOManager
refs #1157

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@748 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 13:52:32 +00:00
Isaak Lim
d370b6e06c - added some documentation to the BaseWriter
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@747 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 10:42:13 +00:00
Isaak Lim
fc7acde663 - added precision option to openmesh writers
refs #1075

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@746 fdac6126-5c0c-442c-9429-916003d36597
2012-10-15 10:28:14 +00:00
Isaak Lim
1d6e590a0f now the QtViewer App tries to load textures for PLY (and other formats) too, if possible
closes #1077

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@745 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 14:11:48 +00:00
Isaak Lim
6aa98b5b7c - now the OM reader also checks user options
- added some corresponding unittests

refs #1077

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@743 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 13:25:36 +00:00
Isaak Lim
b409f83040 - the PLY reader now checks the options set by the user and will skip components that are not requested
- modified the loading unittest to test this behavior

refs #1077

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@741 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 11:44:29 +00:00
Jan Möbius
0411effc88 Missed return of options
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@739 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 09:49:14 +00:00
Jan Möbius
19ceb62d1e Made unittest for obj crash when colors are requested but not available
Made OBJ reader aware of user requests (Warning! Old default behaviour was wrong, because the reader read everything, without checking for the user options!)

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@738 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 09:45:20 +00:00
Jan Möbius
505ab99324 Updated License Headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@737 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 07:33:20 +00:00
Jan Möbius
f3312397a5 Updated License Headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@736 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 07:30:49 +00:00
Jan Möbius
0624a524ca Keywords
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@735 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 07:25:00 +00:00
Jan Möbius
d99a162550 Added more advanced version of the mixxed decimater
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@734 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 07:23:50 +00:00
Jan Möbius
59159b941e Fixed the usage of vector traits such that the traits are used and not the vector types value_type. (Thanks to Mario Deuss for the patch)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@733 fdac6126-5c0c-442c-9429-916003d36597
2012-10-06 10:16:53 +00:00
Jan Möbius
fd8ed29ed5 Mixed not ready yet. Keep for next release
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@729 fdac6126-5c0c-442c-9429-916003d36597
2012-10-02 07:54:57 +00:00