Commit Graph

5344 Commits

Author SHA1 Message Date
Paolo Cignoni 7600fc3ffb removed a couple of forgotted debug ply exporting calls 2014-02-13 16:30:41 +00:00
Paolo Cignoni bbae89aa94 Many small changes to remove useless annoying warnings. 2014-02-13 16:29:51 +00:00
Paolo Cignoni e829dff8af added a const to a parameter passed by reference. 2014-02-13 16:29:21 +00:00
Paolo Cignoni 6efdd91ecc Many small changes to remove useless annoying warnings. 2014-02-13 15:52:17 +00:00
Paolo Cignoni 15bec03c89 Corrected the FHp member of the polygon. 2014-02-13 13:16:09 +00:00
Federico Ponchio d86bbfae4e cleanup and bug fixing 2014-02-13 10:44:39 +00:00
Federico Ponchio d45132e06b added supporto for non variant arguments 2014-02-12 15:19:43 +00:00
Federico Ponchio 57880ef231 Replaced Eigen::Vector3f p; with Eigen::Matrix<S,3,1> p; (support for double precision). 2014-02-12 15:07:19 +00:00
giorgiomarcias 2464b63495 Added a sample app showing how to use the Polycoord Collapse for polygonal meshes. 2014-02-12 12:44:57 +00:00
giorgiomarcias 7b1cdcdeb4 Implemented Polycoord Collapse for polygonal meshes (only strips of quads are effectively collapsed). 2014-02-12 12:43:02 +00:00
giorgiomarcias 4260535fa6 Corrected two wrong indexes on the access to the vertexes of a face while compacting the face vector: just a typo mistake. 2014-02-12 12:15:42 +00:00
Paolo Cignoni 7747e6097f Corrected a few allocating and copyng functions to manage polygonal meshes instead of simple triangular ones. 2014-02-12 10:59:37 +00:00
Paolo Cignoni d00d1b90e0 removed useless mesh parameter in FFLinkCondition 2014-02-12 10:58:38 +00:00
Massimiliano Corsini 171510a59b fix name of hash functor to avoid conflict with the 3D spatial hash 2014-02-11 13:48:52 +00:00
Paolo Cignoni 9e28c7b1e1 simple change of the template name from MESH_TYPE to MeshType to standardize 2014-02-10 10:57:12 +00:00
Nico Pietroni 398f313495 added include point2 of vcg library 2014-02-07 11:08:28 +00:00
Nico Pietroni c5d79ea704 commented out a wrong assert in FFlip function 2014-02-07 11:07:36 +00:00
Nico Pietroni 3bd4213984 solved minor compilation issues 2014-02-07 11:06:49 +00:00
Nico Pietroni 677295f1a3 added include <set> 2014-02-07 11:06:12 +00:00
Paolo Cignoni 5cb33423cf Removed a useless enum definition in the glwidget of trimesh_ant_qt 2014-02-04 16:15:38 +00:00
Massimiliano Corsini 0950b97775 invalid output range - fixed 2014-02-04 16:09:36 +00:00
Paolo Cignoni c4f4ed3360 Updated to the old changes do to the updatenormals class 2014-02-04 16:09:29 +00:00
Paolo Cignoni 234d74354d Added a missing enum to the glcheckerror class 2014-01-28 08:22:02 +00:00
Marco Callieri 0ba814697c Poisson sampling was ignoring the DELETED flag, so when a part of a mesh was deleted but still in memory, would sample it. added a couple of if(!(*vi).IsD()) tests in [InitSpatialHashTable], [ComputePoissonSampleRadii] and [PoissonDiskPruning].
Seems to work, but please test it. 
Beware: there could be more places where this is needed; I only checked poisson.
2014-01-21 14:59:45 +00:00
Marco Callieri 17ed6bdac4 in the function used to compute normals for pointclouds, added a check during consensus propagation to avoid flipping normals backface w.r.t. the specified wiewposition.
It does seem redundant, but it may happen, by mere chance, that the starting point used for consensus propagation, forces other points to flip even if the resulting flip places them backface w.r.t. the specified wiewposition
--to be tested--
2014-01-10 13:00:09 +00:00
Paolo Cignoni c0b621c810 updated the voronoisampling sample to show the new features of the recent changes to the voronoi relaxation framework. 2013-12-20 11:47:58 +00:00
Paolo Cignoni e4311e9d5a Added comment to voronoi parameter 2013-12-20 11:46:50 +00:00
Paolo Cignoni 2df9b39d16 Further clean up of the voronoi relaxation framework. changed the old VoronoiClustering to ConvertToDelaunayTriangulation (for coherence with the other function) and rewrote its code. 2013-12-20 11:44:18 +00:00
Paolo Cignoni 91946b7847 Added basic link condition for FF adjacency and VVOrderedStarFF 2013-12-20 11:42:27 +00:00
Paolo Cignoni ab5869f6c3 Added the possibility of constraining the movement of some seeds onto a specific domain. Now during relaxation you can for example fix some seeds and constrain some other seeds over linear features defined as subset of vertices. 2013-12-20 02:33:36 +00:00
Paolo Cignoni d1a5d53a89 added VertexBorder sampling algorithm that simply collect all the vertexes on the boundary. 2013-12-20 02:27:09 +00:00
Paolo Cignoni 2acd02f102 Added RequireCompactness to the basic exception throwing requirements that you can write at the beginning of an algorithm 2013-12-20 02:24:22 +00:00
Paolo Cignoni 4897d75026 Added MissingCompactnessException to the basic vcg exceptions 2013-12-20 02:23:24 +00:00
Paolo Cignoni 4b8673b60b Added a few more helper functions for Logical to Device conversion 2013-12-16 16:21:05 +00:00
Paolo Cignoni ad2cb4678a Converted to support highdpi devices 2013-12-16 12:15:20 +00:00
Paolo Cignoni eecaf72e1b added a missing include 2013-12-16 12:14:53 +00:00
Nico Pietroni 45c93e47f0 corrected 1 warning 2013-12-16 12:07:54 +00:00
Nico Pietroni c1403e2fef - added FaceSaturate function
- corrected vertex from face quality copy
2013-12-16 12:07:26 +00:00
Nico Pietroni 6103db925f removed 1 warning 2013-12-16 12:06:34 +00:00
Paolo Cignoni 78c58e8d14 Yet more changes and addition to improve compatibility with high dpi devices (like retina) 2013-12-16 11:34:17 +00:00
Paolo Cignoni 999d442dda Added 'inline' to the newly added qt event translator helpers 2013-12-13 09:29:13 +00:00
Paolo Cignoni fc047dbe3f updated the basic qt opengl example to support qt 5.0 ways of managing coords
(simply use the new QT2VCG_X/Y helper functions to translate mouse events)
2013-12-13 07:57:08 +00:00
Paolo Cignoni 276438958f Added two helper function to correctly translate QT mouse events into coords for our trackball.
You must use QT2VCG_X QT2VCG_Y instead of passing the event coords because on newer machines (mac but also win) with very high res monitor, qt events are no more in physical coords.
2013-12-13 07:55:43 +00:00
Paolo Cignoni 94540d3ca6 float -> GLdouble for better compliance... 2013-12-12 21:09:22 +00:00
Paolo Cignoni 88c8bcb293 harmless gcc warning 2013-12-12 20:52:52 +00:00
Paolo Cignoni d44d6e6f41 changed int -> size_t to remove warnings 2013-12-12 20:52:07 +00:00
Paolo Cignoni 43b738796d Significantly improved documentation. Refactored a bit some of the Add* for better readability 2013-12-12 20:35:27 +00:00
Federico Ponchio 030d966b4a added #include <string.h> for memcpy 2013-12-11 14:20:17 +00:00
Paolo Cignoni ecf5bfeeb2 Added a if(!TMId.empty()) before attempting to bind a texture id from an empty vector... 2013-12-06 10:16:59 +00:00
Paolo Cignoni 6f83d41dbe added a missing &* to convert a returned iterator to a pointer in the allocator sample 2013-12-06 07:07:45 +00:00