Commit Graph

67 Commits

Author SHA1 Message Date
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
David Bommes
29e91a9012 added halfedge colors
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@335 fdac6126-5c0c-442c-9429-916003d36597
2010-09-07 12:32:43 +00:00
Mike Kremer
9154ecd47b Setting associated handles of iterator types invalid if reference mesh contains none of the respective entities.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@333 fdac6126-5c0c-442c-9429-916003d36597
2010-07-20 13:43:40 +00:00
Jan Möbius
51f6c2cb3e Fixed doc
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@331 fdac6126-5c0c-442c-9429-916003d36597
2010-07-15 06:36:11 +00:00
Jan Möbius
11798f6134 Fixed documentation for add_face and some other typos (Thanks to Yamauchi Hitoshi)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@330 fdac6126-5c0c-442c-9429-916003d36597
2010-07-15 06:31:53 +00:00
Mike Kremer
26c20f12f3 Avoid %-operator in normal calculation such that gcc does not throw a compiler error when using vector types of dimension other than three.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@327 fdac6126-5c0c-442c-9429-916003d36597
2010-06-21 13:45:45 +00:00
Jan Möbius
34141f8d9a Changed license Header to 2010
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@325 fdac6126-5c0c-442c-9429-916003d36597
2010-06-17 10:45:58 +00:00
Mike Kremer
bc0da8e58c Added status flag for isolated geometry that results from vertex duplication (due to non-manifold configurations).
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@314 fdac6126-5c0c-442c-9429-916003d36597
2010-04-01 13:52:49 +00:00
Mike Kremer
12a74113a3 Changed description comment of non-manifold status flag
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@313 fdac6126-5c0c-442c-9429-916003d36597
2010-04-01 13:08:34 +00:00
Mike Kremer
793b39b2c7 Added status flag for non-two-manifold configurations (for all entities)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@312 fdac6126-5c0c-442c-9429-916003d36597
2010-04-01 13:05:27 +00:00
Jan Möbius
13204f4afc Calculate average normal for poly mesh faces. Otherwise an arbitrary triangle is taken
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@309 fdac6126-5c0c-442c-9429-916003d36597
2010-03-09 13:32:23 +00:00
Mike Kremer
fac109fa4b Avoiding implicit type casts in normal calculation routine.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@270 fdac6126-5c0c-442c-9429-916003d36597
2010-02-08 16:13:17 +00:00