Commit Graph

23 Commits

Author SHA1 Message Date
Sébastien Loriot 52164b1fba First pass on removing license notice in header for LGPL files 2019-10-19 15:40:30 +02:00
Sébastien Loriot 7356421d80 introduce Commercial license SPDX tag 2019-10-19 12:15:19 +02:00
Sébastien Loriot 9bd9c68b83 update LGPL[23]+ and GPL[23]+ SPDX tags
ack -l --no-svg "SPDX-License-Identifier: GPL-3.0\+" | xargs sed -i "s/SPDX-License-Identifier: GPL-3.0+/SPDX-License-Identifier: GPL-3.0-or-later/"
ack -l --no-svg "SPDX-License-Identifier: LGPL-3.0\+" | xargs sed -i "s/SPDX-License-Identifier: LGPL-3.0+/SPDX-License-Identifier: LGPL-3.0-or-later/"
ack -l --no-svg "SPDX-License-Identifier: GPL-2.0\+" | xargs sed -i "s/SPDX-License-Identifier: GPL-2.0+/SPDX-License-Identifier: GPL-2.0-or-later/"
ack -l --no-svg "SPDX-License-Identifier: LGPL-2.0\+" | xargs sed -i "s/SPDX-License-Identifier: LGPL-2.0+/SPDX-License-Identifier: LGPL-2.0-or-later/"
2019-10-18 21:57:54 +02:00
Sébastien Loriot d60f5645aa replace BOOST_FOREACH by c++ ranged-based for loop
some of the command used for the replacement:
ack --cpp  BOOST_FOREACH -l  | xargs sed -i -E "s/BOOST_FOREACH\(([a-zA-Z_:&0-9]+)\s(\w+)\,/for(\1 \2 :/"
ack --cpp  BOOST_FOREACH -l  | xargs sed -i -E "s/BOOST_FOREACH\((const [a-zA-Z_:&0-9]+)\s(\w+)\,/for(\1 \2 :/"
ack --cpp  BOOST_FOREACH -l  | xargs sed -i -E "s/BOOST_FOREACH\((const typename [a-zA-Z_:&0-9]+)\s(\w+)\,/for(\1 \2 :/"
ack --cpp  BOOST_FOREACH -l  | xargs sed -i -E "s/BOOST_FOREACH\((typename [<>a-zA-Z_:&0-9]+)\s(\w+)\,/for(\1 \2 :/"
ack "boost/foreach.hpp" -l --cpp | xargs sed -i '/boost\/foreach.hpp>/d'
2019-03-29 13:22:15 +01:00
Laurent Rineau 0cd5d3f21c Merge pull request #2853 from MaelRL/Generator-Fix_missing_domain_check-GF
Generator: Fix `random_points_in_triangle_mesh_2`

# Conflicts:
#	Generator/include/CGAL/point_generators_2.h
2018-02-23 17:33:12 +01:00
Mael Rouxel-Labbé 5dfd491622 Added a precondition
An empty range will mean a segfault when calling weights.back(), with the
precondition, it will be more obvious.
2018-02-16 16:41:04 +01:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Mael Rouxel-Labbé 6323afb788 Fix return type of Apply_approx_sqrt
1. Should try to remove any reference so we get a proper value type
2. it's result_of(const T&) not result_of(T)
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 33bc47d4b7 Add constructors to Apply_approx_sqrt 2017-06-28 10:15:30 +02:00
Maxime Gimeno 06c8a7a72b Fix the return type of Apply_approx_sqrt. 2016-12-29 07:20:22 +01:00
Maxime Gimeno 9e767fd16f Fix and clean-up 2016-12-29 07:20:21 +01:00
Maxime Gimeno 542efa95d7 Implement the NamedParameters functions and use the property maps. 2016-12-29 07:20:20 +01:00
Maxime Gimeno 218392c7b3 Cherry-pick from Generator-branch.
Conflicts:
	Generator/include/CGAL/internal/Generic_random_point_generator.h
	Generator/include/CGAL/point_generators_3.h
2016-12-29 07:20:20 +01:00
Maxime Gimeno 39e7b76902 WIP 2016-12-29 07:20:19 +01:00
Sébastien Loriot 8bd7bccfdd fix 8a7ccb8
the approximate sqrt can only be applied when computing each weight
2016-09-28 10:59:11 +02:00
Maxime Gimeno 332990c0d1 Use Compute_squared_area_3 instead of Compute_area_3 in case the Kernel does not have a sqrt() implementation. 2016-09-28 10:59:10 +02:00
Sébastien Loriot fd39972166 add method to access the sum of weights 2016-09-28 10:46:43 +02:00
Maxime Gimeno 19a7386164 Clean-up 2016-09-28 10:45:47 +02:00
Maxime Gimeno 3eb1f4ca69 Clean-up
- Clean-up
- Moved Prevent_deref to CGAL/iterator.h
2016-09-28 10:45:46 +02:00
Maxime Gimeno ce9d373760 Implementation and changes
- Change Generic_random_point_generator to use a Functor instead of a property_map
- Change Random_points_on_triangle_mesh_3 to use a functor wrapping around a PMAP instead of the PMAP
- Implement a random point generator on a Triangulation_2
2016-09-28 10:45:45 +02:00
Maxime Gimeno 7bdd704de2 Implement convenience function mor FaceListGraphs 2016-09-28 10:45:45 +02:00
Sébastien Loriot 8665ef7026 clean-up 2016-09-28 10:45:45 +02:00
Maxime Gimeno 709f3984c1 Implements a random point generator for FaceGraphLists, and an unfinished test. 2016-09-28 10:45:44 +02:00