Jane Tournois
8b5902b038
add function to split long edges listed by the user
...
this changes the remesher internal API only
2015-07-15 16:02:27 +02:00
Jane Tournois
8d5312d263
reorganize test
2015-07-15 16:02:26 +02:00
Jane Tournois
117a24807d
make tests simpler
2015-07-15 16:02:26 +02:00
Jane Tournois
67874c737d
fix test when splitting of constraints is allowed
2015-07-15 16:02:26 +02:00
Jane Tournois
2b7bf24205
add documentation for protect_constraints
2015-07-15 16:02:26 +02:00
Jane Tournois
00cc96f968
add code to protect_constraints
...
edges tagged as constraints are not refined when protect_constraints is true
2015-07-15 16:02:26 +02:00
Jane Tournois
ebeb1fdcaa
edge_is_constrained_map does not need to be kept as a member
...
it is used only in the initialization, to fill the halfedge_status_map
2015-07-15 16:02:26 +02:00
Jane Tournois
c460008f23
make test simpler (it is equivalent)
2015-07-15 16:02:26 +02:00
Jane Tournois
f7204a0a99
add edge_is_constrained_map as a parameter for remeshing
...
this property map "tags" the edges that should be kept in the remeshed mesh.
They can be splitted or collapsed, but their vertices can't move with the
Laplacian, and they can't be flipped.
in the Polyhedron demo, this feature is integrated in order to remesh two
adjacent surface patches and keep the (possibly sharp) polyline that is
delimitating them
2015-07-15 16:02:26 +02:00
Jane Tournois
c554466b80
fix default value
2015-07-15 16:02:25 +02:00
Jane Tournois
caad50a628
documentation
2015-07-15 16:02:25 +02:00
Jane Tournois
c41bc2250d
start documentation for get_border and incremental_triangle_based_remeshing
2015-07-15 16:02:24 +02:00
Jane Tournois
e6a7b5a0a3
use get and set to access vertex point map, instead of operator[]
2015-07-15 16:02:24 +02:00
Jane Tournois
f958fe7d5d
fix warning
2015-07-15 16:02:24 +02:00
Jane Tournois
d34d47a6d5
Revert "detect sharp edges and surface patches"
...
This reverts commit 80b1363f1db4db8391398188bcb33427ffc69aac.
2015-07-15 16:02:23 +02:00
Jane Tournois
83957ed495
add code to the selection tool to be able to select a surface patch
...
for now it works only for facets and the checkbox is not used
2015-07-15 16:02:23 +02:00
Jane Tournois
54922319ff
remove todo
2015-07-15 16:02:23 +02:00
Jane Tournois
abc92fcc24
fix assertion code
2015-07-15 16:02:23 +02:00
Jane Tournois
d7caded018
remove useless template qualifier
2015-07-15 16:02:23 +02:00
Jane Tournois
c4496845e4
use const ref for FaceRange input
2015-07-15 16:02:23 +02:00
Jane Tournois
5e6a0e635d
fix status updates (does not fix it all)
2015-07-15 16:02:22 +02:00
Jane Tournois
1797dab16d
fix notations
2015-07-15 16:02:22 +02:00
Jane Tournois
940a92d69a
fix get_border : return only halfedges that belong to `faces`
2015-07-15 16:02:22 +02:00
Jane Tournois
8b9bcefe22
remeshing of the patch
...
works when the patch describes the full mesh
otherwise, it enters an endless loop for now
2015-07-15 16:02:22 +02:00
Jane Tournois
d2f18f8a3e
fix compilation for Polyhedron_3
2015-07-15 16:02:22 +02:00
Jane Tournois
14979947a0
add isotropic remeshing plugin
...
note it does not compile yet because the remeshing code is not
fully compatible with Polyhedron_3
2015-07-15 16:02:22 +02:00
Jane Tournois
f7820a6517
introduce API to mesh only a patch (does not implement anything yet)
2015-07-15 16:02:22 +02:00
Jane Tournois
0f1097c988
use compute_vertex_normals to compute normals only once per face
...
to keep deterministic and not depend on the order in which vertex locations
are relaxed, we compute all new locations first, and relocate them all
afterwise
2015-07-15 16:02:22 +02:00
Jane Tournois
ebb5daa890
allow boundary edges to be collapsed
2015-07-15 16:02:21 +02:00
Jane Tournois
5c9891ed53
fix typos in comments
2015-07-15 16:02:21 +02:00
Jane Tournois
d2b3146fec
project_to_surface at the end of remeshing algorithm
2015-07-15 16:02:21 +02:00
Jane Tournois
8432018c76
add todo
2015-07-15 16:02:21 +02:00
Jane Tournois
1eb75ac3f2
perform tangential_relaxation
2015-07-15 16:02:21 +02:00
Jane Tournois
0c84e31f0b
equalize_valences, by performing edge flips where it's allowed
2015-07-15 16:02:21 +02:00
Jane Tournois
9a2213082e
add comments from PMP book, and output debug info (cout)
2015-07-15 16:02:21 +02:00
Jane Tournois
544a133b5e
add comment
2015-07-15 16:02:21 +02:00
Jane Tournois
d1b5737bd4
allow collapsing edges incident to boundary
2015-07-15 16:02:21 +02:00
Jane Tournois
fc0b9bd51a
add collapse short edges to remeshing
...
longest edges are split first
and shortest edges are collapsed first
todo : allow edges incident to boundary to be collapsed
2015-07-15 16:02:21 +02:00
Jane Tournois
79b5ba8553
first step : split_long_edges
2015-07-15 16:02:20 +02:00
Jane Tournois
598472d210
add framework for remeshing
2015-07-15 16:02:20 +02:00
Sébastien Loriot
c60fad0095
use keep_connected_components in the implementation of keep_largest_connected_components
2015-07-13 07:43:50 +02:00
Sébastien Loriot
7d8fe2553d
add remove_connected_components + overload for the keep version using cc ids
2015-07-13 07:08:45 +02:00
Sébastien Loriot
c82a3ef67d
make warnings not popping in the testsuite
2015-07-06 18:32:24 +02:00
Sébastien Loriot
a1e3c9787b
Revert "we want to be able to test that without generating a warning"
...
This reverts commit cc24c0a89a43651ed11d1f87b233bf8db0d28c86.
2015-07-06 15:32:33 +02:00
Jane Tournois
270f4bbbcc
we want to be able to test that without generating a warning
...
so let's transform into a std::cerr message
2015-07-03 17:04:49 +02:00
Jane Tournois
fbe442fcca
remove empty constructor that causes an error
...
because it does not provide an initial value for pmesh_
2015-07-03 16:03:53 +02:00
Jane Tournois
024f3ce752
remove unused variables to avoid warnings
2015-07-03 13:30:24 +02:00
Laurent Rineau
08dcd2ba6f
Fix a warning on Linux
...
(cherry picked from commit 2cfdf907dd969b59590ec4cf798af4bfe61dcfb3)
2015-07-02 16:22:15 +02:00
Jane Tournois
6eacf37ba9
fix a warning in documentation
...
(unreported variables)
2015-07-02 15:49:25 +02:00
Andreas Fabri
76662ea2eb
Add a file so that Mean_curvature_skeleton compiles with PMP
2015-07-02 11:22:19 +02:00