Jan Möbius
f5d2560656
More efficient implementation of opposite_halfedge handle
...
Old code compiled to
0x00000000004594a0 <+0>: lea -0x1(%rsi),%edx
0x00000000004594a3 <+3>: lea 0x1(%rsi),%eax
0x00000000004594a6 <+6>: and $0x1,%esi
0x00000000004594a9 <+9>: cmovne %edx,%eax
0x00000000004594ac <+12>: retq
New code creates
0x00000000004594a0 <+0>: mov %esi,%eax
0x00000000004594a2 <+2>: xor $0x1,%eax
0x00000000004594a5 <+5>: retq
So no conditionals, jumps and fewer instructions
closes #5
2015-10-23 10:25:47 +02:00
Jan Möbius
6afadfbd4c
Revert "remove dead code" aka Reintroduce status set
...
This reverts commit c5d03587cc .
2015-10-23 08:22:25 +02:00
Martin Schultz
3df14fae1a
fixes #3 by checking Half Edge Handle validity on circulator creation
2015-10-01 15:55:07 +02:00
Martin Schultz
6366027c04
* fixes #3 by using cvv_cw iterators which are not deprecated
2015-09-16 17:09:26 +02:00
Jan Möbius
fc4089ff3b
Fixed bug in polymesh normal computation. Added more unittests for normal computation.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1316 fdac6126-5c0c-442c-9429-916003d36597
2015-07-25 19:28:39 +00:00
Matthias Möller
c5d03587cc
remove dead code
...
refs #2511
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1308 fdac6126-5c0c-442c-9429-916003d36597
2015-07-08 10:12:49 +00:00
Matthias Möller
ed3155284c
- move iostream from header to source files.
...
- replace some iostreams to o/istreams only
- some minor include fixes
closes #2489
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1278 fdac6126-5c0c-442c-9429-916003d36597
2015-06-09 08:58:41 +00:00
Jan Möbius
fd4bcb39ea
Typo
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1258 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 13:07:46 +00:00
Jan Möbius
07ad20793d
Fixed bad typo in comment
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1257 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:54:17 +00:00
Jan Möbius
0a4c1dc206
Get rid of the old ACGMakeFiles
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1253 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:35:09 +00:00
Jan Möbius
83486e0b5f
Relicense to BSD
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1252 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:33:32 +00:00
Jan Möbius
a7450f15f5
Fixed wrong normal calculation in calc_face_normal for Poly Meshes.
...
closes #2427
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1247 fdac6126-5c0c-442c-9429-916003d36597
2015-03-20 11:57:57 +00:00
Matthias Möller
4020a879e6
moved face* circulators to old behavior
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1234 fdac6126-5c0c-442c-9429-916003d36597
2015-03-04 15:47:04 +00:00
Matthias Möller
4cd1955f4b
remove deprecated functions from new circulators
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1233 fdac6126-5c0c-442c-9429-916003d36597
2015-03-04 14:59:44 +00:00
Matthias Möller
ec3667c198
- improve warning text
...
- add checkbox to disable warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1232 fdac6126-5c0c-442c-9429-916003d36597
2015-03-04 14:51:24 +00:00
Matthias Möller
53b9020496
bringing back the old circulators. marked decrement operator as deprecated. Please use CW/CCW iterators
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1230 fdac6126-5c0c-442c-9429-916003d36597
2015-03-04 12:59:54 +00:00
Matthias Möller
eb877fe9da
adding cw and ccw circulators
...
closes #2406
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1227 fdac6126-5c0c-442c-9429-916003d36597
2015-02-23 16:02:40 +00:00
Matthias Möller
0f9b4c2358
- changed lap_counter to int type
...
- extent circulator unittests for endings testing now the cases: (--endIter).is_valid and (++(--startIter)).is_valid
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1226 fdac6126-5c0c-442c-9429-916003d36597
2015-02-19 15:47:21 +00:00
Jan Möbius
1af153e52d
refs #1382
...
- Fixed the problem that the end iterator could become valid again if it was incremented.
- Decrementing the start iterator will return an invalid iterator now (Maybe we can implement reverse iterators)
- Removed one check from the iteration, which should result in faster execution of is_valid().
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1225 fdac6126-5c0c-442c-9429-916003d36597
2015-02-19 09:58:00 +00:00
Matthias Möller
74942b5eb7
fix "relink failed" condition
...
closes #1244
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1220 fdac6126-5c0c-442c-9429-916003d36597
2015-02-10 14:15:25 +00:00
Hans-Christian Ebke
2aed896a45
Added helpful doxygen descriptions to circulators.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1189 fdac6126-5c0c-442c-9429-916003d36597
2015-01-08 09:29:49 +00:00
Jan Möbius
b3778b230f
Updated copyright headers
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1188 fdac6126-5c0c-442c-9429-916003d36597
2015-01-05 15:34:10 +00:00
Hans-Christian Ebke
09190c7c25
Fixed constness of EntityRange begin() and end() methods.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1182 fdac6126-5c0c-442c-9429-916003d36597
2014-11-05 17:03:35 +00:00
Jan Möbius
24bd7be273
Fixed several unused variables
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1150 fdac6126-5c0c-442c-9429-916003d36597
2014-08-29 08:28:47 +00:00
Matthias Möller
040bfbb0f5
fix this ptr
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1146 fdac6126-5c0c-442c-9429-916003d36597
2014-08-28 11:44:20 +00:00
Matthias Möller
d633dfc737
- change name of the types "True" and "False" to "TrueType" and "FalseType" to clearify, that these are types
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1137 fdac6126-5c0c-442c-9429-916003d36597
2014-08-11 09:47:41 +00:00
Jan Möbius
0bc61d5839
OM3 fix
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1129 fdac6126-5c0c-442c-9429-916003d36597
2014-07-31 09:29:42 +00:00
Jan Möbius
f46a7a37bd
Typo fixed from last commit
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1059 fdac6126-5c0c-442c-9429-916003d36597
2014-05-13 10:36:57 +00:00
Jan Möbius
3aad61401f
Fixed copy paste typos in the vertex face and face face range code
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1058 fdac6126-5c0c-442c-9429-916003d36597
2014-05-13 10:33:24 +00:00
Jan Möbius
e953f9977d
- Fixed calc_normals_... functions (Missing this pointer)
...
- Added unittests for the normal calculation functions
M src/OpenMesh/Core/Mesh/PolyMeshT.cc
M src/Unittests/unittests_trimesh_normal_calculations.cc
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1036 fdac6126-5c0c-442c-9429-916003d36597
2014-05-04 15:47:22 +00:00
Hans-Christian Ebke
21562a7c38
PolyConnectivity: Added range based circulators courtesy of Kenshi Takayama. (Thanks!)
...
Also rearranged the code a bit in order to have all range based stuff
in one place and limited line width to 80 chars.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1035 fdac6126-5c0c-442c-9429-916003d36597
2014-05-02 08:58:56 +00:00
Jan Möbius
db4bfbf3b9
Fix for c++11 call to pointer to member function of type 'VertexIter ()' drops 'const' qualifier (Thanks to Ronald Richter and Kenshi Takayama for the fix)
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1021 fdac6126-5c0c-442c-9429-916003d36597
2014-04-23 10:48:39 +00:00
Jan Möbius
68a3ff3136
The annual License Header Bump (Sorry for the rebuilds ;-) )
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@990 fdac6126-5c0c-442c-9429-916003d36597
2014-02-05 09:01:07 +00:00
Hans-Christian Ebke
a0cf6bac3c
OpenMesh: Added convenience method for face centroid computation.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@989 fdac6126-5c0c-442c-9429-916003d36597
2014-01-29 15:05:09 +00:00
Jan Möbius
ae7ae806ae
Added HalfedgeLoop iterator to iterate over loops of halfedges (faces, hoes). closes #1979
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@987 fdac6126-5c0c-442c-9429-916003d36597
2014-01-15 15:43:16 +00:00
Hans-Christian Ebke
18d44c13e7
Added more convenient versions of calc_edge_vector to PolyMeshT.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@986 fdac6126-5c0c-442c-9429-916003d36597
2014-01-11 22:52:16 +00:00
Jan Möbius
6c7d87b460
- Fixed crash of std::string initialization
...
- Fixed documentation mixing primitives
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@973 fdac6126-5c0c-442c-9429-916003d36597
2013-10-16 11:16:21 +00:00
Hans-Christian Ebke
dc5785e812
Put mesh_cast methods into surrounding namespace so clang finds them.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@960 fdac6126-5c0c-442c-9429-916003d36597
2013-09-23 09:35:47 +00:00
Hans-Christian Ebke
a7d3a16a28
Corrected documentation for mesh_cast related stuff.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@959 fdac6126-5c0c-442c-9429-916003d36597
2013-09-20 14:21:55 +00:00
Jan Möbius
ee37edb46b
- Fixed segfault of copy_all_properties if one property has been removed before. (Thanks to Simon Flöry for the patch)
...
- Added unittest for this case
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@951 fdac6126-5c0c-442c-9429-916003d36597
2013-08-29 07:17:03 +00:00
Jan Möbius
cb25e07252
cppcheck
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@936 fdac6126-5c0c-442c-9429-916003d36597
2013-08-21 07:52:33 +00:00
Jan Möbius
201c0ceecb
OM 3 change
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@935 fdac6126-5c0c-442c-9429-916003d36597
2013-08-20 15:45:10 +00:00
Jan Möbius
29011e25d2
Updated license headers
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@922 fdac6126-5c0c-442c-9429-916003d36597
2013-08-11 10:26:11 +00:00
Hans-Christian Ebke
ef1727f21a
Added mesh cast for meshes with different but identical traits.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@920 fdac6126-5c0c-442c-9429-916003d36597
2013-08-09 09:57:18 +00:00
Isaak Lim
2eeb756b6a
- marked current_halfedge_handle as deprecated
...
- updated code to fix related warnings
- added some unittests to ensure unchanged behaviour when replacing current_halfedge_handle
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@917 fdac6126-5c0c-442c-9429-916003d36597
2013-08-08 12:47:48 +00:00
Hans-Christian Ebke
cb16ac26d6
Removed unnecessary parameters from circulator members.
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@916 fdac6126-5c0c-442c-9429-916003d36597
2013-08-08 10:15:53 +00:00
Isaak Lim
7bababee5c
updated the documentation for the improved iterators and circulators
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@915 fdac6126-5c0c-442c-9429-916003d36597
2013-08-08 09:22:50 +00:00
Jan Möbius
daea181b2f
Next set
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@908 fdac6126-5c0c-442c-9429-916003d36597
2013-08-07 11:32:50 +00:00
Jan Möbius
0217136b5e
Next changeset
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@907 fdac6126-5c0c-442c-9429-916003d36597
2013-08-07 11:18:44 +00:00
Jan Möbius
e21e113b50
Replaced all .handle() calls
...
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@904 fdac6126-5c0c-442c-9429-916003d36597
2013-08-07 10:43:06 +00:00