Commit Graph

243 Commits

Author SHA1 Message Date
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
377562d11a Fixed last occurences of non-free-function usage (at least as far as covered by the tests). 2018-04-12 15:16:50 +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
Janis Born
f5bc55004a don't return invalid iterators for empty element ranges 2018-03-22 14:56:35 +01:00
Jan Möbius
da2c1168a5 Merge branch 'edge_split_copy_face_properties' into 'master'
Edge split copy face properties

See merge request OpenMesh/OpenMesh!156
2018-03-20 12:32:20 +01:00
Max Lyon
d32df7f1ba add some consts 2018-03-20 09:58:27 +01:00
schultz
43031ea84f fixes #50 by setting refcounters to 0 if the property is not present 2018-03-19 14:45:17 +01:00
Max Lyon
480f1175e1 also copy face properties in split_copy(EdgeHandle, VertexHandle) 2018-03-19 10:54:06 +01:00
Jan Möbius
34cfd71836 Merge branch 'skipping_ranges' into 'master'
Skipping ranges

See merge request OpenMesh/OpenMesh!153
2018-02-25 13:45:11 +01:00
Max Lyon
d36b24ac18 mark halfedges as deleted after collapse 2018-02-22 13:16:22 +01:00
Max Lyon
ca212ba8f2 let default range-based for skip deleted elements and add a version that includes deleted elements 2018-02-16 13:57:26 +01: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
Martin Schultz
29cbe82048 changed the way status propertzies are copied.
refcount is set to 1 if it was > 0 in the original mesh
fixes #48
2017-10-24 15:58:29 +02:00
Max Lyon
dc77fbd384 only compute normals for faces that are not deleted 2017-08-08 14:14:30 +02:00
Martin Schultz
cd4e65f37f Merge branch 'master' of https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh into featureSplitCopyInternal 2017-06-29 10:31:42 +02:00
Martin Schultz
8302ef59dd changed the split_copy overloaded function with edgehandle as first
parameter tzo always copy internal properties
2017-06-29 10:21:46 +02:00
Jan Möbius
77251c5db8 Merge branch 'Boost_range_support' into 'master'
Boost range support (Thanks to Bastian Pranzas for the patch)

See merge request !135
2017-06-27 15:38:10 +02:00
Martin Schultz
ad950d46b7 made the face and edge split operations that copy properties also copy
builtin properties
2017-06-27 11:56:15 +02:00
Martin Schultz
4826d46ca3 fix boundary case for TriMeshSplit1_4 2017-05-30 14:35:54 +02:00
Jan Möbius
fba2f98c8c Boost range support (Thanks to Bastian Pranzas for the patch) 2017-05-23 16:27:03 +02:00
Jan Möbius
986f98f0b9 Added Triangle 1 to 4 split 2017-04-26 16:58:38 +02:00
Max Lyon
45f3b8187d enable more c++11 features for Visual Studio 2013 2017-04-25 16:03:19 +02:00
Martin Schultz
1f331456e5 fix wrong behaviour of HalfedgeLoopIterators by changing the template parameter 2017-02-20 15:40:08 +01: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
874cef141a use new assignment for polymesh trimesh conversion fixes #35 2017-01-08 23:05:16 +00:00
Martin Schultz
b3b992d2d2 implemented assign function that copies properties and initializes propertiehandles if desired 2017-01-08 23:04:08 +00: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
Martin Schultz
122293b2c0 added copy constructor to PolyMesh_ArrayKernelT and TriMesh_ArrayKernelT 2016-12-08 18:17:11 +01:00
Martin Schultz
74e4e72c63 Added function to copy all properties from one baseKernel to another 2016-12-08 18:15:17 +01:00
Jan Möbius
3183ac5364 Warning fixed 2016-10-24 16:34:05 +02:00
Max Lyon
523e3e10f4 make all negative handles invalid, not just -1 2016-10-21 09:21:18 +02:00
Hans-Christian Ebke
dafbcf1480 Updated documentation of BaseKernel's property functions to hint at PropertyManager. 2016-09-22 10:14:30 +02:00
xan
8445bad3c3 Fix undefined MSVC macro warning 2016-08-14 09:21:31 +02:00
Janis Born
5ee25a5af0 fix CirculatorT type-pun warning on GCC6
(fixes #28)
2016-08-11 10:22:44 +02:00
David Bommes
b82e329c21 changed incorrect class into struct 2016-08-03 10:07:28 +02:00
Jan Möbius
6f862cad6c Merge branch 'hash_functions' into 'master'
Hash functions



See merge request !75
2016-07-11 10:24:44 +02:00
Jan Möbius
59c0b6f16b Next try 2016-06-30 14:05:25 +02:00
Jan Möbius
085e711856 Fixed VS2015 Update 3 fix 2016-06-30 13:56:54 +02:00
Jan Möbius
755f06bf11 Fixed VS2015 Update 3 build error. (Thanks to Jeongkyu Kim for the patch) 2016-06-30 13:53:23 +02: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
Max Limper
c7b64addec Copy per-halfedge and per-face properties to new elments during triangulation 2016-05-03 16:02:59 +02:00
Hans-Christian Ebke
00101c13e0 Merge remote-tracking branch 'origin/master' into performance_tuning 2016-03-24 12:59:35 +01:00
Hans-Christian Ebke
3868b351ec Added a whole bunch of doxygen documentation. 2016-03-24 12:58:43 +01:00
Janis Born
b1a7d43a83 drop VectorDimensionsT metaprogram in favor of vector_traits
(thanks to Marco Centin and Amodio Pesce)
2016-03-17 18:29:55 +01:00
Jan Möbius
cee7b56f5e Fixed ugly typo in __decrement function of Basehandle. Seems to be unused in the rest of the code. 2016-02-04 09:40:23 +01:00
Hans-Christian Ebke
63985edd59 Fixed allocation bug. 2016-01-08 00:49:04 +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