Commit Graph

55 Commits

Author SHA1 Message Date
Max Lyon
6284fb4fc9 add calc_normal method for all elements returning calc_face_normal, average of vertex normals, calc_halfedge_normal, and calc_vertex_normal_correct respectively 2019-12-06 11:16:34 +01:00
Max Lyon
a1a82331e3 add calc_centroid methods for all elements returning calc_face_centroid, calc_edge_midpoint and point respectively 2019-12-06 11:14:27 +01:00
Max Lyon
56c1348493 make more functions return smart handles 2019-10-17 14:55:25 +02:00
Jan Möbius
faa1a7917d Get rid of the T.cc naming for template implementations 2019-02-20 12:14:46 +01:00
Jan Möbius
34c44c9188 Merge branch 'master' into compile-time-connectivity-type 2019-01-15 14:36:58 +01:00
Jan Möbius
2c52593cd7 Removed the old svn revision date headers 2019-01-15 11:21:12 +01:00
Jan Möbius
3c9437d31c Merge branch 'master' into compile-time-connectivity-type 2018-05-30 10:59:40 +02:00
Christian Mattes
7bb868b2be Replaced usage of length() by norm() to avoid forcing both to be implemented 2018-04-16 13:15:45 +02:00
Christian Mattes
57e2e07432 Implemented necessary free functions for OpenMesh Vectors 2018-04-12 11:30:12 +02:00
Christian Mattes
5e7493b3a9 Altered PolyMesh template to work with Eigen's Vectors 2018-04-12 11:11:55 +02:00
Jan Möbius
548a73bfad calc_sector_angle: Check for real division by zero not with epsilon that was way to large 2018-01-05 11:05:08 +01:00
Janis Born
c4fdb6a264 use correct ConnectivityTag typedef for PolyMeshT 2017-07-31 10:32:11 +02:00
Janis Born
f9a1cc930c make is_polymesh / is_trimesh methods constexpr and add a ConnectivityTag typedef to help with tag dispatching 2017-07-28 08:43:13 +02:00
Janis Born
949e705082 more C++98 compatibility 2017-01-12 13:41:08 +01:00
Janis Born
3179316c82 add calc_edge_midpoint methods for meshes 2017-01-11 17:27:11 +01:00
Martin Schultz
49cc72e9d2 added explicit copy constructors for PolyMeshT and TrimeshT to enable static_casts of different mesh types 2016-12-08 18:18:59 +01:00
Andreas Fabri
58b9e4085a - ADD a macro OM_HAS_HASH in the config file.
- Based on the macro provide partial specializations for std::hash<>
- for vertex,halfede,edge, and face handles.
- Add a free function hash_value(BaseHandle) for boost::unordered_set/map
2016-06-08 10:29:18 +02:00
Jan Möbius
8a26487a69 Added hash functions 2016-06-07 12:56:27 +02:00
Hans-Christian Ebke
3868b351ec Added a whole bunch of doxygen documentation. 2016-03-24 12:58:43 +01:00
Hans-Christian Ebke
8ece0770a3 Added a couple of methods to enable more efficient adding of batches of vertices. 2015-12-20 23:07:54 +01:00
Janis Born
b31589b15f fall back to dummy implementation for calc_face_normal on meshes with non-3D points 2015-11-23 15:03:57 +01:00
Jan Möbius
96ba2a3f8b Missing parameter passthrough 2015-11-18 14:55:18 +01: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
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
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
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
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
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
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
Jan Möbius
82135f21ab Missing this pointer
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@820 fdac6126-5c0c-442c-9429-916003d36597
2013-03-05 07:35:35 +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
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
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
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
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
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
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
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
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
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
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
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