Commit Graph

51 Commits

Author SHA1 Message Date
Mael Rouxel-Labbé 47e97bb5ab Added some stronger (yet natural) preconditions to filter_collinear_points()
The range of points must describe a Polygon that is not completely flat,
thus:
- at least three points
- points are not all collinear (up to the tolerance)
2018-07-13 11:36:48 +02:00
Mael Rouxel-Labbé 867ee52bc5 Fixed erroneous early return in filter_collinear_points 2018-07-13 11:36:23 +02:00
Laurent Rineau cd6fe20bd4 Merge branch 'releases/CGAL-4.11-branch' 2018-03-26 11:03:37 +02:00
Mael Rouxel-Labbé fb1b8d6797
Fixed missing include 2018-03-16 10:49:11 +01:00
Mael Rouxel-Labbé f9b68b670d Replaced boost prior with CGAL::cpp11::prev 2018-03-13 10:10:11 +01:00
Mael Rouxel-Labbé 2c68965397 Return the output iterator 2018-03-13 10:10:02 +01:00
Mael Rouxel-Labbé ea0b061b24 Fixed missing include 2018-03-13 10:00:48 +01:00
Mael Rouxel-Labbé b26422705d Cleaning 2018-03-12 15:06:52 +01:00
Mael Rouxel-Labbé c05f9b056c Added a function to filter almost collinear points in a Polygon_2
undocumented
2018-03-12 14:45:24 +01:00
Mael Rouxel-Labbé 4d67ff3d8b Avoid a segfault when is_simple() is called with an empty polygon/range 2018-03-12 11:13:35 +01:00
Andreas Fabri e5118d1401 Declare several operator() used for comparisons const 2018-02-23 15:34:15 +00:00
Andreas Fabri dc2f37a4ae disable/enable warnings 2018-01-24 08:59:20 +00:00
Laurent Rineau f2391a30a5 Merge pull request #2562 from afabri/Filtered_kernel-Do_intersect_2-GF
Add Static Filters for the Exact Construction Kernel
2017-12-19 16:29:53 +01:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Laurent Rineau 2b7bd7c4b8 Fix compilation errors 2017-10-30 17:24:51 +01:00
Andreas Fabri a2fc6e1830 Make Partition_2 work with g++ 2017-10-30 12:55:21 +01:00
Maxime Gimeno 60d0a39d42 fixes 2017-01-24 14:46:36 +01:00
Maxime Gimeno 82860688d1 Fix the doc to avoid diffs between 1.8.4 and 1.8.13 outputs 2017-01-24 09:39:23 +01:00
Guillaume Damiand ebc4300334 Header only for random.cpp.
For the header only version, the global variable default_random no more exist => we need to replace all occurences of default_random by a call to the global function get_default_random().
As usual, no modification for the non header only version.
2014-11-14 14:20:26 +01:00
Sébastien Loriot 5635183db7 add global functions bbox_2 and bbox_3 in the Kernel
remove the function from the 2D function from the Polygon package
2013-05-31 19:44:21 +02:00
Laurent Rineau b6ffa7c425 Merge branch 'CGAL-fix_warnings-GF'
That branch was successfully tested in CGAL-4.2-Ic-205.
2013-03-27 12:23:31 +01:00
Andreas Fabri 0cbc8b0e40 remove unused parameters 2013-03-23 08:45:06 +01:00
Sébastien Loriot e991fe72ad really add last missing classified reference manual pages 2013-03-13 10:57:01 +01:00
Sébastien Loriot 4ec9529581 Merge branch 'doxy-port-pmoeller'
Conflicts:
	.gitattributes
	Surface_reconstruction_points_3/include/CGAL/Poisson_reconstruction_function.h
	Surface_reconstruction_points_3/include/CGAL/Reconstruction_triangulation_3.h
	Surface_reconstruction_points_3/include/CGAL/k_nearest_neighbor.h
2012-11-27 10:05:41 +01:00
Philipp Möller 801721202e Extend the concept to operator-> and fix the bug in edge_circulator.
The work-around is a little fishy, because it involves storing the
segment, but so it be. The concept shouldn't check for operator->
though, it is too strict.
2012-11-17 02:32:44 +01:00
Andreas Fabri e5eeb3e882 finished 2012-10-09 10:12:17 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Sébastien Loriot dff6dda8b3 Remove from copyright holder
Freie Universitaet Berlin (Germany), Martin-Luther-University Halle-Wittenberg
(Germany) and RISC Linz (Austria) as they transfer the copyright to other
sites.
2011-09-21 19:46:31 +00:00
Sébastien Loriot 52317dd49f add python script (replace_CGAL_NAMESPACE.py) to replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE
by namespace CGAL { and } //namespace CGAL. in all .h and .cpp files
in a directory.
Apply it to all packages in the trunk
Remove macro definition from the config.h file.
2010-06-09 07:37:13 +00:00
Sébastien Loriot fe96061a32 remove extra this->container (detected by intel compiler) 2010-04-26 08:16:15 +00:00
Sylvain Pion 85dc12f2a7 Remove empty lines at beginning and end of files
(apply Scripts/developer_scripts/remove_empty_lines.pl).
2010-02-01 12:55:28 +00:00
Stéphane Tayeb 8dceee4164 Add include<CGAL/assertions.h> in *_assertion files. 2009-10-07 13:16:13 +00:00
Stéphane Tayeb 770492c1c7 Use new version of script create_assertions.sh to generate *_assertions.h files.
Diffs are:
 * #undef added
 * in old files, (void)0 is replaced by static_cast<void>(0)
 * in old files, lines as "#  define CGAL_xxx_assertion 1" are added
 * in point_set_processing_assertions.h, surface_mesh_parameterization_assertions.h, surface_reconstruction_points_assertions.h, "|| defined(CGAL_NDEBUG)" is replaced by "|| defined (NDEBUG)"
 * protective macros (if any) are removed
 * included files if any (<CGAL/assertions.h>, <CGAL/trace.h>) are removed
2009-10-07 07:49:44 +00:00
Efi Fogel 227a097ed8 initialize number of vertices 2009-07-01 07:27:31 +00:00
Efi Fogel ba3e7daa3f replaced a call to the constructor of a functor (Less_xy_2) with the generic function that returns the functor (less_xy_2_object() 2009-05-24 14:14:05 +00:00
Sylvain Pion 393c1cc458 const-ify some member functions (bug-report of Roger House on cgal-discuss). 2008-09-25 19:15:00 +00:00
Sylvain Pion 2eb0d8f9e9 certainly() -> possibly(). 2008-07-14 11:16:41 +00:00
Sylvain Pion eff6efd3af CGAL_NULL and CGAL_NULL_TYPE are now constant macros, so replace them by:
- CGAL_NULL -> NULL
- CGAL_NULL_TYPE -> CGAL::Nullptr_t (typedef to const void *)
2008-07-12 21:58:52 +00:00
Sylvain Pion 9d7a609ff2 Make assertions trigger an error only for *certain* conditions (using CGAL::certainly()).
This is useful for interval arithmetic code.
(replay of r44002 with the header order hopefully fixed)
2008-07-10 21:49:17 +00:00
Sylvain Pion 2b4ebf01f7 Undo r44002 as it's buggy 2008-07-06 20:47:29 +00:00
Sylvain Pion 514a17ad4f Improve the interaction of assertions and interval computations.
Things like "CGAL_assertion(denominator != 0)" produced assertion failures for no gain.
So now, the assertion is triggered only if the condition is certain, using CGAL::certainly().
That is, change the following in all assertion files :
  ((EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
to :
  (CGAL::certainly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
2008-07-06 17:05:47 +00:00
Sylvain Pion 056901c578 Remove Borland workaround. 2008-01-20 22:50:29 +00:00
Sylvain Pion 7a03b91d9e Get rid of CGAL_REP_CLASS_DEFINED 2008-01-03 19:13:08 +00:00
Sylvain Pion 360d29f72a Rename CGAL_CIRC_NULL to CGAL_NULL. 2007-12-28 15:40:36 +00:00
Sylvain Pion d49e006c53 Remove default argument "0" to calls to assertion_fail() et al,
as the default is now the empty string "".
It should fix the problem that we have lost the assertion messages
(seeing "what():  basic_string::_S_construct NULL not valid" instead),
for packages that use package-specific assertion macros.
2007-12-21 21:58:27 +00:00
Shlomo Golubev b91276c362 add typename 2007-09-20 08:07:44 +00:00
Andreas Fabri cb33e0c4f6 temporary fix in is_simple 2007-09-19 07:43:34 +00:00
Camille Wormser ce7b960958 Correcting the bug I found in is_convex by filtering
repeated points (and adding only one equality test at 
the beginning in the generic case).
2007-06-27 13:52:53 +00:00
Sylvain Pion 70fa015c19 Allow pointers as the underlying container's iterator
(spotted by Minkowski_sum_2 test-suite on SunCC+STLport).
2007-04-18 12:12:07 +00:00
Sylvain Pion 6441bd7342 remove empty first line 2007-02-15 14:50:53 +00:00