Commit Graph

219 Commits

Author SHA1 Message Date
Andreas Fabri f9d5c8c274 clang warns about boost::shared_ptr<> == NULL 2014-07-03 14:33:56 +02:00
Andreas Fabri fca86f8bea another shared_ptr to fix 2013-09-27 06:36:04 +02:00
Andreas Fabri f906a5934f fix the same problem for shared_ptr 2013-09-26 14:54:04 +02:00
Andreas Fabri e96dd75d15 fix for clang: assertions do not work on intrusive_ptr 2013-09-25 13:02:28 +02:00
Sébastien Loriot 62f7e53b13 make Construct_offset_point public
add a benchmark file using it to avoid building the complete exterior skeleton.
2013-03-29 11:23:33 +01:00
Sébastien Loriot 1830251e10 add missing include 2013-03-21 10:53:07 +01:00
Andreas Fabri 0a42dc95ca turn a static function into an inlined one 2013-03-05 11:04:54 +01:00
Andreas Fabri c9e15507a5 remove unused variable 2013-02-27 14:01:18 +01:00
Andreas Fabri 813b5df1f5 Comment an unused file static function 2013-02-27 13:59:15 +01:00
Sébastien Loriot 82b2ebc865 apply the cpp0x namespace renaming in all files 2012-12-19 11:33:17 +01:00
Sébastien Loriot 9f08f92ee9 BUGFIX in offset computation
while computing the offset of a polygon, it might happen that a candidate polygonal
component is discarded (if it's not a valid polygon but a polyline for example).
In that case, some halfedges are marked as visited, but among them some could be
needed by another component. In this patch, we collect all halfedges marked as visited
and unmark them in case the polygon is incomplete.

The test added was not correctly working before the patch.
2012-10-03 08:33:54 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Sébastien Loriot 147ca74939 add precondition to ensure the polygon is simple 2012-04-18 12:37:23 +00:00
Laurent Rineau f4a19f0a0b Remove unused variables 2012-01-23 08:03:33 +00:00
Andreas Fabri 98e48ff177 Fix for Windows 'min/max' bug 2012-01-18 12:03:01 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Philipp Möller 8eb30ef805 Replaced all uses of predecessor/successor with prev/next. 2011-06-07 16:21:58 +00:00
Sébastien Loriot 8ce2048aea add #include<CGAL/config.h> before any directive CGAL_USE_* 2011-03-02 18:52:57 +00:00
Sébastien Loriot e5a96255ba *remove warnings.
In particular remove UNTESTED_XXXXXXXXXXX unused variable that possibly hide true warnings. 
In those cases, the string printed while executed now starts with "NOTE: ".
*CGAL internal code no longer rely on depecrated features
2011-02-28 15:28:28 +00:00
Laurent Rineau 2e171a51ab Remove extra ';' 2010-12-21 10:05:03 +00:00
Laurent Rineau a48bfdc0f5 Fix a forward declaration. It seems Andreas added in trunk a forward
declaration for a function that exists only in the code of the weighted
straight skeleton. Compilers were confused by it.
2010-12-20 10:32:53 +00:00
Laurent Rineau fdfa1a3077 Typo in a comment (could break the use of sed scripts to one day). 2010-12-20 10:17:18 +00:00
Andreas Fabri efee20b566 Add forward declaration 2010-12-12 20:30:46 +00:00
Laurent Rineau 7fea74cad6 Replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE in Straight_skeleton_2
(that had been reverted a few months ago, after the massive changes of all
CGAL_BEGIN_NAMESPACE in the CGAL repository).
2010-11-23 11:20:03 +00:00
Andreas Fabri 0cffef2237 Add missing #include 2010-11-22 08:31:43 +00:00
Andreas Fabri ac7cb03aa6 rR in the if block shadowed rR in the outer block 2010-11-22 08:28:18 +00:00
Andreas Fabri 6b61b50b4b Remove extra ';' 2010-11-22 08:09:25 +00:00
Marc Glisse f806191a0e If this breaks anything, introduce a CGAL_CFG_ macro.
Note: the revert on this package reverted a number of things that should be reapplied.
2010-11-11 15:23:35 +00:00
Fernando Cacciola 789bb0d83d Fixed UB 2010-10-12 15:57:07 +00:00
Fernando Cacciola 72ed56006a Reverting to release 3.6 2010-08-19 05:06:11 +00:00
Fernando Cacciola 412b3fb135 Fixed location of helper function to draw unbounded bisectors 2010-08-05 21:53:30 +00:00
Fernando Cacciola 8de4373414 Fixed drawing helpers for unbounded bisectors (to consider weights as well) 2010-07-30 18:14:03 +00:00
Sébastien Loriot 4030bc9fa9 typo 2010-07-28 07:14:09 +00:00
Fernando Cacciola c4ef2c709e Added drawing helpers for unbounded bisectors 2010-07-27 15:51:36 +00:00
Fernando Cacciola 03ca20e331 Fixed bug in simplified API 2010-07-23 20:20:45 +00:00
Fernando Cacciola 73da9f96ca Misc code fixes/cleaning up, plus documentation updates 2010-06-24 15:54:55 +00:00
Fernando Cacciola 20b7f183ee Misc compiler fixes and doc updates 2010-06-16 20:00:43 +00:00
Fernando Cacciola d6d94eff84 Simplified API testsuite 2010-06-11 16:49:25 +00:00
Fernando Cacciola bbf18925e7 Simplified API testsuite 2010-06-11 05:10:04 +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
Fernando Cacciola aff0c71a68 Simplified API testsuite 2010-06-08 20:47:41 +00:00
Laurent Rineau 67928706cf C++ conformance: calls to member templates of dependent names must be
qualified with the "template" keyword.

Example:
  template <typenam T>
  void f(T foobar) {
    foobar.get<0>().foobar(); // error
  }
must be written:

  foobar.template get<0>().foobar();
2010-05-16 16:50:24 +00:00
Fernando Cacciola 7196d6ce51 Shut warning 2010-05-06 02:51:10 +00:00
Andreas Fabri 5f8097fffd Work around min/max macro problem for VC++ 2010-05-05 17:38:01 +00:00
Fernando Cacciola b6d93bfad7 Fixed examples and tests 2010-05-05 17:14:56 +00:00
Andreas Fabri bc90f2fd2b Work around min/max macro problem for VC++ 2010-05-05 17:06:20 +00:00
Fernando Cacciola de48d61720 Weighted straight skeleton API update 2010-05-03 18:25:25 +00:00
Fernando Cacciola dafa6c5e7c Weighted straight skeleton API update 2010-04-30 19:01:58 +00:00
Fernando Cacciola 60b038972e Weighted straight skeleton API update 2010-04-27 16:57:58 +00:00
Sébastien Loriot 72ef527fc6 remove extra ; 2010-04-26 09:00:17 +00:00
Fernando Cacciola 91c0cb5e76 Fixed weights handling 2010-04-15 22:17:21 +00:00
Fernando Cacciola 3dd317796d Fixed warnings 2010-03-01 13:44:00 +00:00
Fernando Cacciola 6853d2d68d Fixed examples 2010-02-24 22:18:06 +00:00
Fernando Cacciola fef1031474 Working test suite 2010-02-02 17:57:16 +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
Sébastien Loriot 95d83d7e79 remove warnings 2010-01-21 11:13:31 +00:00
Fernando Cacciola c9c10cdb3c SS weighted version 2010-01-17 15:13:08 +00:00
Sylvain Pion 8573fe26ce Rename CGALi to internal. 2009-08-24 17:10:04 +00:00
Fernando Cacciola d07ab269c6 Robust skeleton node construction fixes 2009-07-24 17:20:12 +00:00
Fernando Cacciola fbbefdde2a Fixed proper specialization of Polygon_2 with a non-default container (used by the Polygon demo) 2009-07-08 16:04:50 +00:00
Fernando Cacciola 82bbf38081 Fixed iterator requirements (use != instead of <) 2009-07-07 14:31:18 +00:00
Andreas Fabri c226ac52df one more capitalization 2008-10-28 13:35:18 +00:00
Andreas Fabri cc40126f67 More capitalization of header file names 2008-10-27 16:30:51 +00:00
Andreas Fabri e69f082718 Capitalized file names 2008-10-25 13:48:37 +00:00
Fernando Cacciola 06659b888f Fixed capitalization of header files containing functions 2008-10-21 19:44:23 +00:00
Fernando Cacciola d4ee790bb1 Added work-around for VC8 ICE in crate_offset_polygons_2 2008-10-21 18:43:20 +00:00
Fernando Cacciola 8608064198 Fixed numerical handling problem 2008-10-14 15:08:59 +00:00
Fernando Cacciola 5c56a54aeb Fixed inexact_sqrt problem due to change of number type 2008-09-22 20:23:41 +00:00
Sylvain Pion 74514a0fc7 Deverbosification :) 2008-08-12 09:04:37 +00:00
Sylvain Pion a8e8ecfdcf Replace Interval_nt_advanced::unsafe_comparison by Uncertain_conversion_exception.
(it was alrady the same type, but now the filtering code can be independent on Interval_nt_advanced
(think other interval types, or other types of filters).
2008-07-31 13:31:26 +00:00
Sylvain Pion fbc04e5b3e Remove some totally useless calls to make_uncertain() (the remaining ones do not seem that useful either...) 2008-07-30 13:13:26 +00:00
Sylvain Pion 97929b6bd2 Replace is_indeterminate() by !is_certain() 2008-07-30 12:40:57 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +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 7dfd4237cc Rename SS and CS to avoid name clashes with macros on x86/solaris (/usr/include/sys/regset.h). 2008-06-15 16:21:29 +00:00
Fernando Cacciola 4a5689b69b Improved full and partial skeleton creation testing 2008-05-08 22:29:36 +00:00
Fernando Cacciola a07d5da761 Fixed partial-skeleton-related bug detected by test-suite.
Removed unused variabe warning
2008-05-08 16:18:58 +00:00
Fernando Cacciola 8adbf35a68 Miscelaneous SLS fixes 2008-05-07 16:01:29 +00:00
Fernando Cacciola 2f2220d9b0 Two more examples added 2008-04-30 15:57:06 +00:00
Fernando Cacciola d12124c350 Partial skeletons for faster offsetting 2008-04-28 17:03:23 +00:00
Sylvain Pion d194bf8b53 Add missing CGAL:: qualification 2008-04-10 08:46:24 +00:00
Fernando Cacciola e9bc3893a0 Merged removal of unnecessary cast for SunPro 2008-04-08 19:40:54 +00:00
Fernando Cacciola ac82708815 General compilation fixes for VC++ 2008-04-08 19:33:11 +00:00
Sylvain Pion 1d47b96e3c Remove more useless enum_cast<>. 2008-03-20 16:46:25 +00:00
Sylvain Pion 167e077dd8 Forgot to update the comment in last change 2008-01-20 22:43:17 +00:00
Sylvain Pion d8ad82e66b Remove obsolete SunPRO workaround, and workaround warning. 2008-01-20 22:41:10 +00:00
Sylvain Pion 50ed4bb632 Use <cstdlib> and <cstdio> consistently instead of <stdio.h> and <stdlib.h>. 2008-01-18 20:33:57 +00:00
Sylvain Pion 08888b27f0 Add missing include file 2008-01-15 20:40:50 +00:00
Sylvain Pion 39f6a3b405 Include missing <boost/shared_ptr.hpp> header. 2008-01-14 17:37:40 +00:00
Fernando Cacciola 64bcb5a240 svn properties fixed 2008-01-14 13:44:13 +00:00
Fernando Cacciola 16fbeb0885 Permissions fixed (again) 2008-01-14 12:59:56 +00:00
Fernando Cacciola 639cac2dc4 Local fixes 2008-01-11 15:49:10 +00:00
Fernando Cacciola 9f60e34b3e Permissions fixed 2008-01-11 15:46:07 +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