Commit Graph

1648 Commits

Author SHA1 Message Date
Sébastien Loriot 4d3be80122 fix wording 2017-08-03 13:59:44 +02:00
Laurent Rineau f8760d591b Merge pull request #2136 from afabri/Polygon_mesh_processing-accelerate_isotropic_remeshing-GF
Polygon_mesh_processing: Accelerate Isotropic_remeshing
2017-07-21 10:45:32 +02:00
Andreas Fabri cb70bee37c Polygon_mesh_processing: fix doc
`PolygonMesh` -> `TriangleMesh`
2017-07-20 15:00:49 +02:00
Laurent Rineau 1d4d0dcec0 Merge pull request #2153 from janetournois/PMP-add_random_perturbation-jtournois
PMP - add random perturbation for triangle meshes
2017-07-17 12:43:58 +02:00
Laurent Rineau c53c3f9abd Shorten the lines with a typedef 2017-07-12 15:26:09 +02:00
Laurent Rineau d30a20d323 Fix a compilation error
remesh.h must be included after the headers that include the properties
for the face graphs.
2017-07-12 15:26:08 +02:00
Laurent Rineau 78c37a578d Fix indentation 2017-07-12 15:26:08 +02:00
Andreas Fabri 70b13af39c Do not pollute the boost namespace 2017-07-12 12:11:34 +02:00
Andreas Fabri 3ff34b4b23 cleanup 2017-07-11 20:32:23 +02:00
Andreas Fabri 886bd840cf Make the dynamic property map an implementation detail 2017-07-11 20:32:23 +02:00
Andreas Fabri 24012f3fd7 Fix testsuite for isotropic remeshing of an OpenMesh - it now works 2017-07-11 20:32:23 +02:00
Jane Tournois c019f0a341 make target_edge_length bigger
when do_protect is set to true, target_edge_length cannot be too small
or it would prevent from terminating
2017-07-11 20:32:23 +02:00
Andreas Fabri d291f572cb Add a testcase for isotropic remeshing of Polyhedron and OpenMesh 2017-07-11 20:32:23 +02:00
Andreas Fabri 5ba2161d21 Make isotropic remeshing compile with OpenMesh 2017-07-11 20:32:22 +02:00
Andreas Fabri c35a018135 Move add and remove of property maps in namespace internal (realizing that it is wrong to claim that it works for any FaceGraph 2017-07-11 20:31:34 +02:00
Laurent Rineau a4a30648f7 Fix warnings 2017-07-11 20:31:34 +02:00
Jane Tournois 860cf84b9f fix the own_tree logic, that is not valid anymore
the question is to know whether the vector<AABB_tree*> is built
or not
2017-07-11 20:31:34 +02:00
Jane Tournois 63c3881bc4 comments cleaning 2017-07-11 20:31:34 +02:00
Jane Tournois 0185563131 remove default constructor for Connected_components_pmap
keep only one constructor, and compute the connected components
only conditionally when they are needed
2017-07-11 20:31:34 +02:00
Jane Tournois 7f9abe0eb2 remove outdated comment 2017-07-11 20:31:33 +02:00
Jane Tournois 108a8ecbbe fix the use of Connected_components_pmap
when one is given by the user, we don't want to remove it
when we compute one on-the-fly, we do

also fix the debug code accordingly
2017-07-11 20:31:33 +02:00
Jane Tournois 44c6114b2c use the new dynamic property map system for the halfedge_status_pmap 2017-07-11 20:31:33 +02:00
Jane Tournois 2e1b752aae use the new dynamic property map system for the face_patch_map 2017-07-11 20:31:33 +02:00
Andreas Fabri 2bfd037c2d Add keyword template 2017-07-11 20:31:31 +02:00
Jane Tournois 2213628c49 first attempt to remove SM_HALFEDGE_STATUS_PMAP
there is some cleaning left to do,
including the dealing with remove_property_map
2017-07-11 20:31:31 +02:00
Jane Tournois 07cb8df9d0 cleaning 2017-07-11 20:31:31 +02:00
Jane Tournois 436c5ce213 remove output to a file to save time in the testsuite 2017-07-11 20:31:31 +02:00
Jane Tournois 63588be9d2 cleaning of example 2017-07-11 20:31:31 +02:00
Andreas Fabri 1b41423bf1 fix variable name 2017-07-11 20:31:31 +02:00
Andreas Fabri 3aff30811f remove redefining typedef 2017-07-11 20:31:31 +02:00
Andreas Fabri 0e8397ed8e Add typename 2017-07-11 20:31:30 +02:00
Andreas Fabri 704b8c8c2d If there is only 1 connected component there is no corner 2017-07-11 20:31:30 +02:00
Andreas Fabri 7a5f38c77b bug fix for 3220c14 2017-07-11 20:31:30 +02:00
Andreas Fabri 72de5a4de3 Reserve to avoid reallocation 2017-07-11 20:31:30 +02:00
Andreas Fabri db1a11b5c9 Reserve to avoid reallocation 2017-07-11 20:31:29 +02:00
Andreas Fabri ecaad9a83f If there is only 1 connected component a vertex IS on the patch 2017-07-11 20:31:29 +02:00
Andreas Fabri 4e76d5619c If there is only 1 connected component, we don't need a map to look up the same value 2017-07-11 20:31:29 +02:00
Andreas Fabri 2ce105f516 BUG FIX: In a previous commit a line got lost 2017-07-11 20:31:29 +02:00
Andreas Fabri 8cc58040fc fix typo. Note also that in a previous fix I accidentally added code for the Surface_mesh::Property_map 2017-07-11 20:31:29 +02:00
Andreas Fabri 9a7ddead28 no need to find() 2017-07-11 20:31:29 +02:00
Andreas Fabri 86964336ad make a cheap test first 2017-07-11 20:31:29 +02:00
Andreas Fabri 5acfe4520e No need to circulate around vertices if we have a mesh without border and without constraints 2017-07-11 20:31:29 +02:00
Andreas Fabri 8af5dfb077 Hopefully less is_collapse_allowed() tests 2017-07-11 20:31:29 +02:00
Andreas Fabri 845e319851 join ranges instead of copying them into a single std::vector 2017-07-11 20:31:28 +02:00
Andreas Fabri a8152a5bda Don't construct a triangle 2017-07-11 20:31:28 +02:00
Andreas Fabri c361eab5b5 Do less degree calculations 2017-07-11 20:31:28 +02:00
Andreas Fabri 6b8cdf8dd3 cleanup 2017-07-11 20:31:28 +02:00
Andreas Fabri 1f8204a648 cleanup 2017-07-11 20:31:28 +02:00
Andreas Fabri ec229834dd Switch to a hard-wired propery map 2017-07-11 20:31:28 +02:00
Andreas Fabri fac05f2498 code transformation to prepare switch to a propery map 2017-07-11 20:31:28 +02:00