Commit Graph

106 Commits

Author SHA1 Message Date
Sylvain Pion a0be560caa New profiling tool : Profile_branch_counter, that improves the display
of failure/calls ratios.  With the corresponding macro CGAL_BRANCH_PROFILER().
2008-09-08 09:52:37 +00:00
Sylvain Pion b90dd1b09c Give Lazy_construction the ability to take an optional conversion functor template argument. 2008-08-28 09:50:20 +00:00
Sylvain Pion 3fa4fad3af Remove To_interval<> template parameter to Cartesian_converter<> :
the default is fine.
2008-08-27 15:37:06 +00:00
Sylvain Pion 5082778d02 Remove useless #include files. 2008-08-27 15:08:35 +00:00
Sylvain Pion d66014f760 Generic tool to replace the Robust_circumcenter functor and co. 2008-08-27 15:04:42 +00:00
Sylvain Pion 4c79d1d5cf Rename Bool_type to Boolean. 2008-08-26 13:40:26 +00:00
Sylvain Pion bb9e8b92d1 Simplify condition using are_ordered(). 2008-08-12 15:23:12 +00:00
Sylvain Pion aff1bf74aa Replace CGAL::Interval_nt<>::number_of_failures() by a CGAL_PROFILER() counter. 2008-08-06 13:16:04 +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 265ce473b4 Rename extract_singleton(Uncertain<T>) to get_certain() 2008-07-30 12:03:07 +00:00
Sylvain Pion f70c3779c7 Rename Uncertain::is_singleton() to is_certain() 2008-07-30 08:29:37 +00:00
Sylvain Pion dbec0ecc4d Fix the crash by initializing a Lazy_exact_nt variable.
Finish the assign -> object_cast change.
2008-07-29 09:32:17 +00:00
Sylvain Pion 038b278121 Use object_cast instead of assign (the code still crahes though, but it's dont_submit'd) 2008-07-29 09:25:53 +00:00
Sylvain Pion b735d3afe6 Remove Filtered_kernel_without_type_equality (deprecated since 2005). 2008-07-28 16:24:08 +00:00
Sylvain Pion dc3bf72707 Remove changes.txt files. 2008-07-24 17:47:16 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +00:00
Sylvain Pion 105b413797 Remove CGAL/basic.h 2008-07-17 09:30:03 +00:00
Sylvain Pion 91d2d7478b Move Uncertain.h from Filtered_kernel to STL_Extension 2008-07-16 16:07:27 +00:00
Sylvain Pion 6ee113f820 Document the kernel typedefs specifying the return types of the predicates:
Bool_type, Sign, Comparison_result, Orientation, Oriented_side, Bounded_side and Angle.
2008-07-16 13:59:26 +00:00
Sylvain Pion 173ef7c590 Allow propagation of Uncertain-ty in more places, to reduce the number of exceptions.
- Use K::Bool_type, K::Orientation... instead of bool, CGAL::Orientation...
- More functions around Uncertain<> : make_certain(), extract_singleton(),
                                      possible conversions tightenning.

Many conversions still remain, e.g. for switch and if statements, &&, ||...
2008-07-16 13:45:13 +00:00
Sylvain Pion f895c0cfcc Update todo list 2008-07-14 13:02:59 +00:00
Sylvain Pion 32a9d86ec2 Fix header inclusion order problem by #including <CGAL/config.h> instead of <CGAL/basic.h>.
Really: <CGAL/basic.h> should go away!
2008-07-12 21:09:38 +00:00
Sylvain Pion b88a95e684 Towards Circle_3 and Lazy_kernel. 2008-06-19 15:39:11 +00:00
Sylvain Pion 110a5db8be Rename all C++0x related config macros to consistently have CPP0X in their name,
as in CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES.
2008-05-21 15:34:36 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Sylvain Pion 55d538b335 "Ambient" is not spelled "Ambiant" in English... 2008-04-17 10:13:31 +00:00
Sylvain Pion 2389cdcc1e Dimension detecting stuff rewrite.
There is now Ambiant_dimension and Feature_dimension.
The handling of the dynamic dimension case is now done by having
the di,ension tag as the first thing provided, with the integral
constant value available only when it makes sense (INT_MAX no longer needed).
2008-04-13 12:38:48 +00:00
Sylvain Pion 02e543a294 Add Dimension<T, K> whose nested "value" is the dimension of the ambiant
space.  A special constant CGAL::Dynamic_dimension (equal to INT_MAX)
indicates the case where the dimension is only known at run time.
2008-04-11 21:03:22 +00:00
Sylvain Pion 4873e53de2 Move:
<CGAL/Kernel/Cartesian_coordinate_iterator_2.h>
  <CGAL/Kernel/Cartesian_coordinate_iterator_3.h>
To:
  <CGAL/Filtered_kernel/Cartesian_coordinate_iterator_2.h>
  <CGAL/Filtered_kernel/Cartesian_coordinate_iterator_3.h>
2008-04-09 18:06:00 +00:00
Sylvain Pion 1d8779b171 Rename the following functions:
det2x2_by_formula
  det3x3_by_formula
  det4x4_by_formula
  det5x5_by_formula
  det6x6_by_formula
to:
  determinant

How cute...  a name independent of the dimension, and even readable !
2008-04-09 13:35:34 +00:00
Sylvain Pion fa0a51444e Pass Uncertain<T> and T (enum or bool) by value instead of by reference.
It is generally accepted that it is more efficient for small classes like this
(and it's definitely shorter and more readable).
2008-04-02 09:00:45 +00:00
Sylvain Pion 95e3f12c58 Add operator* and comparison operators for Uncertain<>.
Update one predicate that could not cope with that change
(due to operator?: not being overloadable).
2008-04-02 08:52:08 +00:00
Sylvain Pion 1d47b96e3c Remove more useless enum_cast<>. 2008-03-20 16:46:25 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola 279eb55b13 Some cmake scripts for demos and examples fixed 2008-02-07 14:58:33 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Sylvain Pion 838dab23ab Add missing #include <cassert> . 2008-01-20 19:13:05 +00:00
Sylvain Pion 0daa805f36 Use boost::thread_specific_ptr<> for Thread Local Storage.
(restore the previous optimization)
2007-12-19 16:13:05 +00:00
Sylvain Pion a46b55bf71 The files "changes.txt", "description.txt", "long_description.txt" and "maintainer"
are now under /trunk/$Package/package_info/$Package/ .
2007-12-02 15:06:42 +00:00
Andreas Meyer fdeedcf8b0 some low level code cleanup. renamed
* CGAL_error to CGAL_error_msg
* introduced a macro CGAL_error()
* added some words about CGAL_error to the developers manual
* renamed most of assert(x) into CGAL_assertion(x)
* renamed exit(x) with x != 0 , CGAL_assertion(false) and assert(false) into CGAL_error
* CORE left untouched, OpenNL changed
2007-11-07 16:51:18 +00:00
Sylvain Pion 6bc0e9dfe7 Replace calls to abort() by CGAL_assertion*.
In contexts such as cgal-python, it is a bug to call abort (since it kills the interpreter).
Therefore, we should never call abort() from inside CGAL.
2007-11-05 10:02:36 +00:00
Sylvain Pion c392f5a18f Use CGAL_HAS_THREADS. 2007-10-18 15:01:10 +00:00
Sylvain Pion 2259365505 Disable optimization sharing the default constructed Lazy object,
as it is not thread safe.
2007-10-18 12:22:31 +00:00
Sylvain Pion d3ed4341f2 Rename AK to Approximate_kernel and EK to Exact_kernel to avoid AK clash (for Algebrai_kernel). 2007-09-06 10:05:53 +00:00
Sylvain Pion 57a2ee284f Renaming of profiler info for consistency with CGAL naming:
- In_circle_2  ->  Side_of_oriented_circle_2
- In_sphere_3  ->  Side_of_oriented_sphere_3
2007-09-02 21:03:46 +00:00
Sylvain Pion b976aea1b6 Remove 2 workarounds which are not needed anymore by the latest SunPRO:
CGAL_CFG_DEEP_DEPENDENT_TEMPLATE_BUG
CGAL_CFG_DEDUCABLE_CONTEXT_BUG
2007-08-24 12:57:55 +00:00
Andreas Fabri f09c87dd4a A random int 0 leads to division by zero 2007-08-23 15:04:28 +00:00
Sylvain Pion 4da7713aa8 Remove obsolete config flag CGAL_CFG_NO_STDC_NAMESPACE and rename
its dependant macro CGAL_CLIB_STD to "std".
2007-08-08 15:59:25 +00:00