Commit Graph

304 Commits

Author SHA1 Message Date
Sven Oesau a10b21e7d1 added missing typename 2022-06-02 10:28:08 +02:00
Sven Oesau fc041ebd62 added least squares cylinder fitting 2022-06-01 16:23:05 +02:00
Sven Oesau cb0f9475dc renaming Polygon_mesh namespace to Triangle_mesh
renaming Region_growing_X subfolders to X
2022-05-24 21:11:32 +02:00
Sven Oesau dd2774391b fixed score calculation and sorting of cylinders and circles 2022-05-24 15:13:47 +02:00
Sven Oesau 82b3626556 Corrected score to be in descending order from suitable to unsuitable seed point. 2022-05-23 14:00:15 +02:00
Sébastien Loriot a54fbbf5dc init index map 2022-05-18 17:53:37 +02:00
Sébastien Loriot 66f7199b12 disambiguate 2022-05-18 17:41:11 +02:00
Sébastien Loriot 43104a2772 restore data member init 2022-05-18 16:49:03 +02:00
Sébastien Loriot 4bf1069cc8 remove extra typename 2022-05-18 15:25:37 +02:00
Sébastien Loriot 948b2b94ea provide default point and normal maps to the helper 2022-05-18 15:24:36 +02:00
Sébastien Loriot c1ad9fa755 range is a template parameter of the function 2022-05-18 15:00:03 +02:00
Sébastien Loriot 29a0343ec9 remove trailing whitespace 2022-05-18 11:57:37 +02:00
Sven Oesau b5bdc3e7ee added second constructor for passing a edgerange used for detection 2022-05-18 10:19:53 +02:00
Sven Oesau 994c7cbc26 using visited flag for rejected items 2022-05-18 10:19:13 +02:00
Sven Oesau 552fed46c7 added minimum_region_size parameter for polyline_graph construction 2022-05-15 22:26:49 +02:00
Sven Oesau aef4e58e5b Region growing now guarantees that all associated elements are within the specified tolerances of the fitted primitive 2022-05-15 22:05:04 +02:00
Sven Oesau 447f52cbc4 Moved property maps back into NamedParameters 2022-05-13 13:36:43 +02:00
Sven Oesau e5ebd268ef Consolidated free_functions.h
Moved property maps outside of NamedParameters for point-based region growing
2022-05-13 08:57:39 +02:00
Sébastien Loriot 204c3ad289 the map is also used for point set in the demo 2022-02-24 13:38:45 +01:00
Sébastien Loriot 3ecce6310f remove no longer needed parameter 2022-02-24 12:08:12 +01:00
Sébastien Loriot 622e724e87 copy input range of faces to get direct access to face from index 2022-02-24 11:27:47 +01:00
Sébastien Loriot d963d70c25 simplify polyline graph 2022-02-24 10:43:53 +01:00
Sébastien Loriot 763d621a9b avoid conversion 2022-02-01 13:54:42 +01:00
Sébastien Loriot 279543de0f fix warnings 2022-01-31 17:04:12 +01:00
Sébastien Loriot 0c97521f91 remove extra endcond 2022-01-31 16:37:02 +01:00
Sébastien Loriot 3b981fcf6e clean up 2022-01-26 16:59:04 +01:00
Sébastien Loriot a3de80767f use initialized index map mechanism 2022-01-26 16:55:33 +01:00
Sébastien Loriot 432207df48 simplify API 2022-01-26 16:05:05 +01:00
Sébastien Loriot 08f3d051e8 do not need to know the range type and to store the range 2022-01-26 13:28:57 +01:00
Sébastien Loriot deb052e004 fix bug leading to accessing out-of-range element 2022-01-26 13:04:25 +01:00
Sébastien Loriot 04b58dc5ae remove dependencies 2022-01-24 18:36:44 +01:00
Sébastien Loriot 2f9d22225e remove deprecated functions
Because of the default values of the constructors,
the API of the new and the deprecated constructors
are identical and the deprecated one is always chosen
2022-01-24 18:31:20 +01:00
Sébastien Loriot 1fb47e3fd1 accomodate updates of named parameters 2022-01-21 15:25:18 +01:00
Andreas Fabri 40e800f1af Fix VC problem with max 2021-12-28 09:54:21 +00:00
Dmitry Anisimov 930278ec50 Merge remote-tracking branch 'origin/master' into Region_growing-revision-danston 2021-11-16 14:57:16 +01:00
Dmitry Anisimov 86b26e44d3 added access to circle/sphere/cylinder shapes 2021-11-16 14:51:00 +01:00
Dmitry Anisimov 43d4d27c5b added two utility operators to neighbor queries 2021-10-14 15:18:44 +02:00
Dmitry Anisimov 61a6dff624 added functions to update parameters 2021-10-14 12:03:42 +02:00
Mael Rouxel-Labbé 8166579e55 Merge branch 'PM-Fix_pmaps_reference_types-GF' into PM-Fix_pmaps_reference_types_master-GF 2021-10-11 19:58:07 +02:00
Mael Rouxel-Labbé 590ddf8015 Various fixes for pmaps:
- Use `value_type` when the returned type is not a reference
- Enforce `reference = value_type` if the returned type is not
  a reference (to avoid `typename PM::reference r = get(m, k)`,
  which will take a ref to a temporary if the `reference`
  typedef is an actualy reference)
- Do not use `put_get_helper` if the property map is not a `lvalue`
  **mutable** property map: the `put()` is `map[k] = v`, which
  is broken if `operator[]` does not return a reference
- The concept `boost::lvalue_property_map_tag` requires `operator[](key)`,
  not a reference in `get(map, key)`. You can have a readable property map
  returning a reference through its `get(map, key)`, but if there is
  no `operator[]`, it's just a `boost::readable_property_map_tag`
- Some const correctness to avoid copying maps with state
  or heavy keys in `get(map, key)` / `put(map, key, value)`
- Base the category of a wrapping pmap on what it offers instead
  of just forwarding the base property map's category
- Tried to do something like mutable lvalue pmap:
  * `value_type& operator[](key&)`
  * `ref get(map, const key&)`
  * `put(map, const key&, const value_type&)`
  and non-mutable lvalue pmap:
  * `const value_type& operator[](const key&)`
  * `ref get(map, const key&)`
  but not everything fits properly...
2021-10-08 15:38:47 +02:00
Mael Rouxel-Labbé df560987a6 Whitespace & cleaning changes 2021-10-08 12:13:43 +02:00
Dmitry Anisimov 9246c1389e remove unnecessary conversions in utils for circles and spheres 2021-09-27 17:03:44 +02:00
Dmitry Anisimov c63d41d0e3 more precision for cylinder fitting and sorting 2021-09-27 16:39:11 +02:00
Dmitry Anisimov 02edd6d2cb more precise sphere fitting and sorting 2021-09-27 15:10:54 +02:00
Dmitry Anisimov c093f84ac9 cleanup 2021-09-27 14:45:31 +02:00
Dmitry Anisimov 1222be73b0 more precise circle fitting and sorting 2021-09-27 13:53:57 +02:00
Dmitry Anisimov 7465e7caac added constructors with np set to all_default 2021-09-27 12:40:08 +02:00
Dmitry Anisimov d6004297f1 added cgal no deprecated code 2021-09-27 12:03:25 +02:00
Dmitry Anisimov 8c0b6f14d6 fixed wrong np 2021-09-23 14:26:30 +02:00
Dmitry Anisimov ae50a0beae fixed examples + some other small stuff 2021-09-22 17:36:32 +02:00