Paolo Cignoni
cbb6b7e4b3
Improved TrivialPointerSampler to also expose the addEdge interface
2017-09-05 00:37:45 +02:00
Paolo Cignoni
2793be26f6
better comments and corrected SelectVertexCornerBorder -> VertexCornerBorder
2017-04-02 17:40:12 +02:00
Paolo Cignoni
c4d97c2c03
Huge reordering of header file inclusion order
2017-03-14 07:48:48 +01:00
Paolo Cignoni
ebb747ecf5
Added a meshassert in the uniform edge sampling
2017-03-13 15:47:33 +01:00
nico
c858faab65
corrected template parameter of VertexBorderCorner function
2017-01-27 12:20:31 +01:00
nico
2e3e2d5194
moved VertexBorderCorner function in updating flags
2017-01-25 17:26:57 +01:00
Paolo Cignoni
6e63061a5a
Improved documentation, templates a point3f as coordtype, added a function for returning the sampled vector
2016-12-20 09:12:50 +01:00
Paolo Cignoni
32333eba24
Huge copyright sanitization of the header files of vcg folder.
2016-06-13 05:29:25 +00:00
Paolo Cignoni
b2203ab96a
harmless clang warning
2016-02-11 06:09:31 +00:00
Paolo Cignoni
cc388bebfe
moved Redetail sampler class from meshlab to here.
2016-02-02 15:09:54 +00:00
Paolo Cignoni
13b1a8f1d9
Renamed VertexTMark into EmptyMark to reflect its nature (do nothing) and be easier to be used in other context (e.g. as a dummy marker functor for edges)
2015-12-03 22:58:08 +00:00
Luigi Malomo
35ed4897f6
uniform edge resampling: added option to force inter-sample distance to be less than the radius
2015-11-06 17:32:29 +00:00
Luigi Malomo
62b7955f22
fixed uniform resampling of edge mesh
2015-11-05 23:35:44 +00:00
Luigi Malomo
1480d19996
commented debug printfs
2015-11-04 17:18:42 +00:00
Marco Callieri
6715e4f658
- added a "only on selection" option to VertexUniform and AllVertex sampling functions
...
- added a "isD" check to VertexUniform sampling function
to be tested
2015-10-29 13:44:25 +00:00
Paolo Cignoni
4efdccf204
Added PerFace Normal sampling
2015-10-28 12:52:25 +00:00
Paolo Cignoni
3f1b4519b5
Moved Hausdorff sampler from meshlab to vcglib
2015-10-20 22:32:16 +00:00
Paolo Cignoni
b4bdd7b832
better comments
2015-09-11 05:56:59 +00:00
Paolo Cignoni
03fb236a82
Improved EdgeMeshUniform to sample also closed loops of edges correctly
2014-09-19 17:07:02 +00:00
Paolo Cignoni
0e15b05070
Added more control on the initialization of the random generator in the poisson sampling
2014-08-29 13:21:27 +00:00
Paolo Cignoni
636cf7bf8a
Added possibility of specifying approximation tolerance in the posson disk sampling by number
2014-08-28 09:28:14 +00:00
Paolo Cignoni
b452c7a305
Changed the wrapper for poisson disk sampling to use the exact pruning option if radius is not specified.
...
Corrected bug in the exact pruning that failed to return radius in some cases
2014-08-28 01:53:58 +00:00
Paolo Cignoni
967f61b2be
Added EdgeMeshUniform method that generate samples over the edges of a polyline in a uniform way.
2014-08-26 01:43:04 +00:00
Paolo Cignoni
352d386a53
Just a few other size_t vs int clarifications
2014-08-09 00:02:52 +00:00
Paolo Cignoni
26e8652a24
Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType
2014-07-01 06:20:23 +00:00
Paolo Cignoni
934e5d9e3e
Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType
2014-06-24 08:48:27 +00:00
Nico Pietroni
c918b9097c
correct 1 bug in VertexBorderCorner function
2014-06-22 12:28:56 +00:00
Paolo Cignoni
4c30ba4672
Small changes in the long long way to making meshlab and the vcglib really float/double independent
2014-06-18 10:38:15 +00:00
Paolo Cignoni
28d838ca49
Corrected a small bug in the poisson sampling exact number helper.
2014-05-23 15:05:16 +00:00
Paolo Cignoni
3b7753ef20
Many Changes to point sampling:
...
- Heavy refactoring (typename changes, declaration etc) for clarity and shortness
- add a reset() method to the sampler interface
- changed the way used to get a weight in the sampling process now the variance is used to map the 'metric' along 1 and <variance>; Made it uniform in poisson and montecarlo sampling.
- changed the way in which the weight is used/passed: now with attribute!
- added exact number poisson disk pruning.
- stats are always computed (no performance impact clearer code)
2014-05-15 10:35:08 +00:00
Paolo Cignoni
e532407ddc
Added the possibility to control the random generator seeding in the poisson pruning wrappers
2014-04-18 08:27:38 +00:00
Paolo Cignoni
e353355f12
corrected a small syntax error introduced in the last commit
2014-04-17 13:53:55 +00:00
Paolo Cignoni
6e4edddcf5
Corrected a small syntax error in the last commit of point_sampling
2014-04-17 10:11:43 +00:00
Paolo Cignoni
4be7b59a80
Added TrivialPointerSampler to sample a mesh returning pointers to the chosen vertexes.
...
Added another poisson pruning wrapper to make even easier to choose a subset of vertexes from a mesh with good distribution.
2014-04-17 09:51:48 +00:00
Paolo Cignoni
2254e98779
slightly improved comments and a missing requirement
2014-03-04 00:39:27 +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
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
25e6561f60
Changed the access to a segment endpoint according to the recent change P(x) -> Lerp(x) in the segment3 interface
2013-11-07 22:35:32 +00:00
Paolo Cignoni
41bced16bd
Added VertexBorderCorner sampling function (that returns all the vertices over the boundary and that are corners...
2013-10-03 10:00:53 +00:00
Paolo Cignoni
80467d1f41
minor changes (component check in the sampler class)
2013-09-11 11:09:29 +00:00
Paolo Cignoni
0263e6df9d
Small changes in comments
2013-09-10 14:21:48 +00:00
Paolo Cignoni
d974bf2770
Further tuning of poisson disk sampling pruning. Now we check also if the Spatial Hash Index is not over filled,
2013-09-10 13:41:16 +00:00
Paolo Cignoni
4fdfb1d62b
Parameter Tuning for the PoissonDisk sampling using the getBestPrecomputedMontecarloSample heuristic. Now there is a better default and another param exposed.
2013-09-10 10:50:10 +00:00
Paolo Cignoni
c5fcfd94c1
Added a MeshSampler Class to the framework as a simple example of the sampling procedure
...
Added another wrapper for montecarlo sampling of points
Improved the basic wrapper of poisson disk sampling to include variable disk radius sampling
2013-07-23 07:32:12 +00:00
Paolo Cignoni
29b3c4e1ec
Added VertexCrease, EdgeMontecarlo sampling methdo
...
Improved PoissondDisk sampling algorithm with the bestSampleChoiceFlag parameter
2013-06-24 10:51:53 +00:00
Paolo Cignoni
8446dbc168
corrected a wrong interface to poisson pruning (left after recent changes)
2013-03-13 00:16:51 +00:00
Paolo Cignoni
d61c5c24a1
Slight change of the PoissonDiskPruning interface. Removed a useless parameter (the original surface mesh)
2013-03-01 08:34:33 +00:00
Paolo Cignoni
26392a560b
Corrected a small bug in the Poisson disk sampling: as an unwanted side effect invoking the sampling will change the size of the bbox of the mesh. Mostly harmless but weird.
2013-02-23 05:50:27 +00:00
Paolo Cignoni
0839617d99
Corrected a small bug in the simpler wrapper for the generation of a poisson disk distribution over a mesh
2013-01-31 10:50:19 +00:00
Paolo Cignoni
7a205ecad6
removed harmless warnings
2012-12-02 15:07:17 +00:00