Lingjie Zhu
b17ca72645
fix split
...
modify proxy map before add_one_proxy_at
2018-11-30 15:28:00 +08:00
Lingjie Zhu
e4f08cb18e
remove preconditions
...
facet proxy map and proxy error are always valid
2018-11-30 15:28:00 +08:00
Lingjie Zhu
d1bf782a2e
fit_proxy_from_facet update error and proxy map
...
this maitain the proxy map and proxy error always valid
even if the number of iteration is 0
connected component fitted from patch
need error/vector degeneracy handeling
2018-11-30 15:28:00 +08:00
Lingjie Zhu
4750ea9328
add_one_proxy_at
2018-11-30 15:28:00 +08:00
Lingjie Zhu
d7f7369416
random pick non-seed facets
...
without proxies clear which invalidates existing proxy map
2018-11-30 15:28:00 +08:00
Lingjie Zhu
a693b2d928
compute_fitting_error -> compute_total_error
...
proxy error has already been computed in fit_proxy_from_patch
2018-11-30 15:28:00 +08:00
Lingjie Zhu
f951b81e62
fit proxy from patch & seed facet
2018-11-30 15:28:00 +08:00
Lingjie Zhu
27d4485393
proxy_wrapper constructor with error
2018-11-30 15:28:00 +08:00
Lingjie Zhu
fc6788b9b4
use Vector and CGAL::ORIGIN to compute anchor location
2018-11-30 15:28:00 +08:00
Lingjie Zhu
e69d136e13
add optional anchor location optimization
2018-11-30 15:28:00 +08:00
Lingjie Zhu
ba2ef67904
check forced teleportation
2018-11-30 15:28:00 +08:00
Lingjie Zhu
f81c885a69
approximate on geometry with disconnected component
...
random shuffle on non seed facets
2018-11-30 15:24:16 +08:00
Lingjie Zhu
888ebfd4ea
add connected component detection
2018-11-30 15:24:16 +08:00
Lingjie Zhu
c07b7daf3a
fix naming
...
fit_error -> m_perror_metric
proxy_fitting -> m_pproxy_fitting
2018-11-30 15:24:16 +08:00
Lingjie Zhu
59e314ce21
fix naming
...
m_borders -> m_bcycles
2018-11-30 15:24:16 +08:00
Lingjie Zhu
4fc49c26c7
fix naming
...
Chord_vector -> Boundary_chord
Border -> Boundary_cycle
2018-11-30 15:24:16 +08:00
Lingjie Zhu
97fdfd2965
prefix data member with m_
2018-11-30 15:24:16 +08:00
Lingjie Zhu
48086ed3f0
fix naming and spacing
2018-11-30 15:24:16 +08:00
Lingjie Zhu
e7945764a5
fix manifold test
...
forgot to compute average_edge_length when algorithm
instance is constructed from (tm, vpmap)
2018-11-30 15:24:16 +08:00
Lingjie Zhu
66458af0bd
consistent naming and spacing
2018-11-30 15:24:16 +08:00
Lingjie Zhu
f1a5f76f00
fix dynamic_property_map compiling issue
2018-11-30 15:24:16 +08:00
Andreas Fabri
0cb55dfd8d
Use dynamic_property_map
2018-11-30 15:24:16 +08:00
Lingjie Zhu
22661170f8
remove unnecessary get_ helper functions
2018-11-30 15:24:16 +08:00
Lingjie Zhu
52da6dbb12
subdivision with relative/absolute error options
2018-11-30 15:24:16 +08:00
Lingjie Zhu
2540672e3d
doc: update operations
2018-11-30 15:24:16 +08:00
Lingjie Zhu
2d939eb2be
fix fit
...
partition always writes to global facet proxy map
fit takes input proxies and write back, maybe not the global proxies(in split)
2018-11-30 15:24:16 +08:00
Lingjie Zhu
5734237ced
split in confined area
2018-11-30 15:24:16 +08:00
Lingjie Zhu
ca22427e42
partition and fitting tagged area
...
use tag to stop the partition flooding
partition/fitting range of proxies
2018-11-30 15:24:16 +08:00
Lingjie Zhu
58f5a58eb5
add proxy wrapper with index
...
mantain the index when addding/refitting/merging/teleporting
2018-11-30 15:24:16 +08:00
Lingjie Zhu
7d06955b2b
make partition and fitting private
...
because they are always used together --> run(nb_iterations)
2018-11-30 15:24:16 +08:00
Lingjie Zhu
1a94e743ad
vertex anchor map int -> std::size_t
...
anchor map value type int to std::size_t
general invalid tag
2018-11-30 15:24:16 +08:00
Lingjie Zhu
e4ad5e4490
add number of proxies curve
...
add nb_proxies - error curve
curve description
error debug output
2018-11-30 15:24:16 +08:00
Lingjie Zhu
9c9cfc8f53
pulic compute_fitting_error
2018-11-30 15:24:16 +08:00
Lingjie Zhu
af6a8a5df2
replace init with seeding
2018-11-30 15:24:16 +08:00
Lingjie Zhu
b11b32e35e
remove init_by_ interfaces
2018-11-30 15:24:16 +08:00
Lingjie Zhu
35f3cc6052
minor fixes
2018-11-30 15:24:16 +08:00
Lingjie Zhu
37b8d0fb0e
patch
2018-11-30 15:24:16 +08:00
Lingjie Zhu
12f93c4beb
better init
2018-11-30 15:24:16 +08:00
Lingjie Zhu
1880c3b517
better init
...
init_random with iterations
strict control of max_nb_proxies
2018-11-30 15:24:16 +08:00
Pierre Alliez
a74afd3d2c
minor changes in doc
...
adding TOFIX comments
2018-11-30 15:24:16 +08:00
Lingjie Zhu
43dbe443aa
delegate init_by_ to unified init
2018-11-30 15:24:16 +08:00
Lingjie Zhu
b815906e14
unified init with two stop criteria
...
either/both/neither max_nb_proxies and/or min_error_drop specified
parameter check
implicit max number of proxies allowed num_faces/3
2018-11-30 15:24:16 +08:00
Andreas Fabri
82f429ee30
Replace std::map by boost::unordered_map to speed up. We can even do better with Dynamic_property_map
2018-11-30 15:24:16 +08:00
Lingjie Zhu
408bd0c1bd
add private utility functions
...
surface facets shuffling
init from first facet
2018-11-30 15:24:16 +08:00
Lingjie Zhu
54a8a88e5d
class API init
...
with max_nb_proxies and min_error_drop
better init_random
TODO: needs general init when both specified
2018-11-30 15:24:16 +08:00
Lingjie Zhu
7b6e1d2020
named parameter: both stop criteria can apply
2018-11-30 15:24:16 +08:00
Lingjie Zhu
2e6818e08c
named parameter chord_subdivide to mesh_chord_error
2018-11-30 15:24:16 +08:00
Lingjie Zhu
e42a120c8c
add get_proxy_region
2018-11-30 15:24:16 +08:00
Lingjie Zhu
4e81f58d84
fix demo
...
cgal class naming convention
coherent if/for block style
new API
2018-11-30 15:24:16 +08:00
Lingjie Zhu
8f578ebd54
fix demo and test
...
to the new class/free function interface
scoped class/function/enum name
CGAL class naming convention
2018-11-30 15:24:16 +08:00