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
Paolo Cignoni
26fc41faf5
Added a small wrapper for montecarlo sampling of a mesh surface
2012-11-22 23:28:40 +00:00
Paolo Cignoni
8f079de515
Added a bunch of 'c' to component members to clarify constant access
2012-11-15 19:14:29 +00:00
Paolo Cignoni
bb4f118a03
Small bug in the time computation of Poisson sampling
2012-11-07 01:14:27 +00:00
Paolo Cignoni
ecd88fcb28
Added a default parameter to the sampling class and a few utility sampling classes for taking point on faces.
2012-10-22 18:42:11 +00:00
Paolo Cignoni
df87b9710e
Updated to reflect the naming changes in updateNormals
2012-10-11 11:08:38 +00:00
Paolo Cignoni
539de75614
Cleaned up a bit the printint stuff. Now it should collect stats in a more clean way
2012-07-02 16:31:52 +00:00
Paolo Cignoni
0cad100f9d
corrected harmless gcc warnings
2012-05-06 14:20:34 +00:00
Paolo Cignoni
5f22a3f7b5
added a very simple function wrapper to get a poisson disk distribution over a mesh with just function call
2012-04-18 21:12:12 +00:00
Paolo Cignoni
95e69075e4
Yet another removal of the usage of the faceprojection flags
2011-12-19 00:51:49 +00:00
Paolo Cignoni
2fe129645b
Rolled back
2011-10-05 15:04:40 +00:00
ganovelli
a5fc2fae6a
bug corrected: . to -> in VertexAreaUniform
2011-04-08 14:28:00 +00:00
Paolo Cignoni
f8eb8a41dd
Cleaned up a bit triangle3. Removed some weird interpolation wrappers (that ended to be misused) and updated the rest of the lib to comply with this changes
2011-04-05 21:53:12 +00:00
ganovelli
9ff0ad3f1e
Ongoing Rearrangement of filepath
...
replaced the path to comply the filepaths modification.
The replacements are as follows:
/complex/trimesh/base.h --> /complex/complex.h
/complex/trimesh/allocate.h --> /complex/allocate.h
/complex/trimesh/append.h --> /complex/append.h
/complex/trimesh/ --> /complex/algorithms/
/complex/local_optimization/ ---> /complex/algorithms/local_optimization/
/complex/local_optimization.h ---> /complex/algorithms/local_optimization.h
/complex/intersection.h ---> /complex/algorithms/intersection.h
/complex/boundary.h ---> /complex/algorithms/boundary.h
2011-04-01 17:06:03 +00:00
ganovelli
1ad23912db
2011-04-01 16:25:49 +00:00