Commit Graph

228 Commits

Author SHA1 Message Date
Isaak Lim
94ec0ac3f4 Improved the documentation regarding garbage collection and iterators.
closes #1010

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@665 fdac6126-5c0c-442c-9429-916003d36597
2012-09-10 13:45:45 +00:00
Jan Möbius
8e35c50bf7 Fixed update of halfedge handles for extended garbage collection
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@662 fdac6126-5c0c-442c-9429-916003d36597
2012-09-10 09:36:48 +00:00
Jan Möbius
28398292a5 Fixed the new updating garbage collection as it produced garbage
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@661 fdac6126-5c0c-442c-9429-916003d36597
2012-09-07 18:09:05 +00:00
Jan Möbius
23bf459eff Updated garbage collection documentation
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@660 fdac6126-5c0c-442c-9429-916003d36597
2012-09-07 16:37:29 +00:00
Jan Möbius
82ef0a086a In debug mode write a warning message in garbage collection, if the status flags are missing for one of the primitives.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@659 fdac6126-5c0c-442c-9429-916003d36597
2012-09-07 16:24:50 +00:00
Jan Möbius
727157bab2 Don't crash in garbage collection, if certain status flags are not available
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@658 fdac6126-5c0c-442c-9429-916003d36597
2012-09-07 16:17:25 +00:00
Jan Möbius
0ebf091e56 Changed signature
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@641 fdac6126-5c0c-442c-9429-916003d36597
2012-08-02 16:59:45 +00:00
Jan Möbius
c7575e439e Garbage collection with tracking of handles. ( Thanks to Maxime Quiblier for the base of this update)
Unit tests for garbage collection (halfedges still missing yet)

uint->unsigned int changes

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@640 fdac6126-5c0c-442c-9429-916003d36597
2012-08-02 16:56:15 +00:00
Jan Möbius
b85c224c96 gcc-4.7 compatibility
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@629 fdac6126-5c0c-442c-9429-916003d36597
2012-07-24 09:24:28 +00:00
Jan Möbius
a146d6c8c8 Fixed gcc-4.7 error
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@628 fdac6126-5c0c-442c-9429-916003d36597
2012-07-23 13:04:20 +00:00
Jan Möbius
ebff217ec5 Added unittest, to check if halfedges were marked as deleted, if the edges are deleted
Fixed delete_face function, not marking halfedges as deleted, if the edge gets deleted.
(Thanks to Maxime Quiblier for the bug report)



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@622 fdac6126-5c0c-442c-9429-916003d36597
2012-07-23 07:00:10 +00:00
Jan Möbius
6a3fb965f8 Fixed build warning due to types
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@621 fdac6126-5c0c-442c-9429-916003d36597
2012-07-18 13:28:26 +00:00
Hans-Christian Ebke
c18d288043 Removed bogus return statement from void methods.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@618 fdac6126-5c0c-442c-9429-916003d36597
2012-07-13 08:36:56 +00:00
Hans-Christian Ebke
d42d01de91 Added return value to TriMesh::split operation.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@617 fdac6126-5c0c-442c-9429-916003d36597
2012-07-13 08:36:54 +00:00
Jan Möbius
b3b2819166 Fixed build failure with gcc 4.7
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@613 fdac6126-5c0c-442c-9429-916003d36597
2012-07-03 12:22:31 +00:00
Jan Möbius
f71f7fc4df Fixed build failure with gcc 4.7
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@612 fdac6126-5c0c-442c-9429-916003d36597
2012-07-03 12:21:06 +00:00
Jan Möbius
a3f36c2d73 Some documentation and cleanup for the add_face functions.
Unittests for add_face on triangle and quad meshes.




git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@600 fdac6126-5c0c-442c-9429-916003d36597
2012-06-21 07:55:12 +00:00
Jan Möbius
e658918cca Fixed bug in halfedge normal computation, where a boundary halfedge was not correctly handled and caused a segfault.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@599 fdac6126-5c0c-442c-9429-916003d36597
2012-06-20 14:50:15 +00:00
Isaak Lim
a79eab0528 added a check to is_collapse_ok in TriConnectivity if the edge is already deleted or not.
moved the equivalent check in PolyConnectivity to the top of the is_collapse_ok function.

closes #681

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@582 fdac6126-5c0c-442c-9429-916003d36597
2012-05-08 10:48:07 +00:00
Jan Möbius
0340ccf054 Fixed usage of operator | instead of dot
Added unittest for that



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@581 fdac6126-5c0c-442c-9429-916003d36597
2012-05-03 16:32:11 +00:00
Jan Möbius
7cfc461f66 Fixed documentation warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@578 fdac6126-5c0c-442c-9429-916003d36597
2012-04-10 18:17:47 +00:00
Jan Möbius
a96ca67b16 Improved block for update_normals if properties don't exist. Documentation for update normals improved
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@575 fdac6126-5c0c-442c-9429-916003d36597
2012-04-10 13:06:29 +00:00
Jan Möbius
77ede4fac5 Document triangulate function in polymesh with more details
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@570 fdac6126-5c0c-442c-9429-916003d36597
2012-04-05 14:25:45 +00:00
Jan Möbius
dd1ff3061f Updated collapse documentation
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@569 fdac6126-5c0c-442c-9429-916003d36597
2012-04-04 07:42:59 +00:00
Jan Möbius
64c0f20cd9 Added spaces to try to remove some documentation warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@561 fdac6126-5c0c-442c-9429-916003d36597
2012-03-21 14:40:48 +00:00
Jan Möbius
118202c476 Fixed a size_t uint conversion
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@558 fdac6126-5c0c-442c-9429-916003d36597
2012-03-20 09:08:20 +00:00
Jan Möbius
2b25dba5fb More XCode 4.3 fixes
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@556 fdac6126-5c0c-442c-9429-916003d36597
2012-03-08 17:24:30 +00:00
Jan Möbius
637381f19c Xcode4.3 fixes for debug mode. refs #464
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@555 fdac6126-5c0c-442c-9429-916003d36597
2012-03-05 14:17:36 +00:00
Jan Möbius
b3c91eb26e More Xcode 4.3 compatibility fixes. closes #464
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@553 fdac6126-5c0c-442c-9429-916003d36597
2012-03-02 16:54:35 +00:00
Jan Möbius
03fd666b9b Fix to build with correct two phase name lookup (xcode 4.3 compatibility for OpenMesh). The template base class members are not found otherwise.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@552 fdac6126-5c0c-442c-9429-916003d36597
2012-03-02 16:16:30 +00:00
Hans-Christian Ebke
d44c4bedf7 Fixed another bug in the new consolidated iterator. Unit tests seem to be passing, now.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@550 fdac6126-5c0c-442c-9429-916003d36597
2012-03-01 17:27:38 +00:00
Hans-Christian Ebke
62ef24047a Fixed subtle issue with new consolidated iterator that slightly altered it behavior.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@549 fdac6126-5c0c-442c-9429-916003d36597
2012-03-01 17:06:44 +00:00
Hans-Christian Ebke
d3c3820221 Consolidated iterator code. Functionally equivalent but way cleaner than before.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@548 fdac6126-5c0c-442c-9429-916003d36597
2012-03-01 15:41:44 +00:00
Hans-Christian Ebke
ddcf2f46f3 Simplified iterators and made them integrate better with the STL.
Specifically, value_type has changed from {Vertex,Edge,...} to
{Vertex,Edge,...}Handle so that dereferenced iterators can actually be put to
use, now.


git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@547 fdac6126-5c0c-442c-9429-916003d36597
2012-03-01 14:55:47 +00:00
Jan Möbius
ed0c4a1da3 Revert last commit
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@543 fdac6126-5c0c-442c-9429-916003d36597
2012-02-29 13:21:06 +00:00
Jan Möbius
4fc5787850 Changed the counter functions like n_vertices,n_edges,... from uint to size_t
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@542 fdac6126-5c0c-442c-9429-916003d36597
2012-02-29 12:58:52 +00:00
Jan Möbius
48c8d78dc4 Test to get rid of windows warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@517 fdac6126-5c0c-442c-9429-916003d36597
2012-01-20 10:48:56 +00:00
David Bommes
222e55b9e9 added support for halfedge normals (normals per face/vertex to allow for smooth shading with feature edges)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@512 fdac6126-5c0c-442c-9429-916003d36597
2012-01-19 19:12:39 +00:00
Jan Möbius
de7961fab7 Fixed bug in split edge function for polymeshes, setting incorrect to pointers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@481 fdac6126-5c0c-442c-9429-916003d36597
2012-01-02 09:26:54 +00:00
Jan Möbius
0016d751f3 Replaced (v0|v1) by dot(v0,v1) in calc_sector_angle as
it fails to build otherwise (Thanks to Zhang Juyong for the fix)



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@480 fdac6126-5c0c-442c-9429-916003d36597
2011-12-16 13:18:51 +00:00
Jan Möbius
c2e20729c7 Fixed typos
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@456 fdac6126-5c0c-442c-9429-916003d36597
2011-11-14 08:16:07 +00:00
Jan Möbius
ae4cbf0d46 Document skipping iterators
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@424 fdac6126-5c0c-442c-9429-916003d36597
2011-10-10 12:24:43 +00:00
Jan Möbius
8cc50f96f6 Bugfix for #248 end circulator broken for VertexFaceIter
The vf_end function did not provide the correct end for the iteration.

Added unittest for two cases with VertexFaceIter (hour glass case and full case) 

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@415 fdac6126-5c0c-442c-9429-916003d36597
2011-10-07 15:01:51 +00:00
Mike Kremer
72508d770b Avoid GCC 4.4 compiler warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@409 fdac6126-5c0c-442c-9429-916003d36597
2011-09-08 08:18:36 +00:00
Jan Möbius
d27c282b9b Added patch to speed up add_face function. Thanks to Stephen Webb
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@406 fdac6126-5c0c-442c-9429-916003d36597
2011-09-01 10:04:15 +00:00
Jan Möbius
7528d961e3 Use kernel split function on trianlge meshes instead of polymesh split
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@398 fdac6126-5c0c-442c-9429-916003d36597
2011-07-07 07:46:02 +00:00
Jan Möbius
39f1eecc82 Added is_collapse_ok and split_edge for polymeshes
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@396 fdac6126-5c0c-442c-9429-916003d36597
2011-07-01 07:10:15 +00:00
Jan Möbius
d12c25d365 Minor documentation update
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@367 fdac6126-5c0c-442c-9429-916003d36597
2011-01-27 13:18:47 +00:00
Jan Möbius
4fdd4c2adc Updated license headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@362 fdac6126-5c0c-442c-9429-916003d36597
2011-01-26 09:21:12 +00:00
Jan Möbius
b63dcd31bd Patch to work with gcc 4.6. ptrdiff_t not correctly included from std, Thanks to Ville Heiskanen for the patch)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@360 fdac6126-5c0c-442c-9429-916003d36597
2011-01-05 09:52:58 +00:00