Commit Graph

148 Commits

Author SHA1 Message Date
Sébastien Loriot 1481d66ec7 add missing declarations 2011-02-17 07:28:05 +00:00
Andreas Fabri 3326bf5316 Use CGAL::abs instead of fabs 2011-02-16 15:51:53 +00:00
Andreas Fabri 64a1a3a18c Use CGAL::abs instead of fabs 2011-02-16 14:28:33 +00:00
Sébastien Loriot 3539a9f144 update for Filtered_kernel 2010-12-29 08:51:11 +00:00
Sébastien Loriot 0607d7650f update profile script for change in CGAL 2010-12-29 08:47:09 +00:00
Laurent Rineau 8eac6ca650 Improvement: add static filters to Lazy_kernel (which is the EPEC kernel).
For that:

- Split internal::Static_filters into two classes: one with only filtered
functors, for Epeck, and one that use the filtered functors, but also use
directory unfiltered functors of the Cartesian kernel (for predicates that
only compare doubles).

- Add a functor Get_approx in <CGAL/internal/Static_filters/tools.h>, that
is the identity for all types but lazy types (in that case its returns
"x.approx()").

- Use Get_approx in static-filters versions of predicates, so that they can
be used with Lazy_kernel too.

- Use Static_filters<K_base, false> as base class of Lazy_kernel.

- Rewrite <CGAL/Exact_predicate_exact_constructions_kernel.h>, to use
  static filters for Epeck, but also to simplify that file by the use
  Exact_type_selector<double>::Type as number type.

(The testsuite of Kernel_23 is OK on the platform
x86-64_Linux-2.6_g++-4.4.4_F13).
2010-12-17 13:53:26 +00:00
Laurent Rineau 212ea5a473 Merge in trunk the code of https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Kernel::Has_filtered_predicates_tag 2010-12-16 16:09:23 +00:00
Laurent Rineau 83edee1bb3 Remove an ugly "#if 1" from the code, and document in a comment what was
the previous definition of the default constructor of Lazy<AT,ET,EFT,E2A>.
2010-12-15 13:56:41 +00:00
Andreas Fabri efc9c499f9 Add missing operator for Tetrahedron_3 2010-12-14 15:51:47 +00:00
Sébastien Loriot 9cbf4274ae due to correction of the traits Filtered_bbox_circular_kernel_2
in revision 58154, Filtered_bbox_circular_kernel_2<Lazy_circular_kernel_2<K> >
was no longer working.

In Circular_kernel_2: 
  *The Rep type of Circular_arc_2, Line_arc_2 and Circular_arc_point_2 in
   Filtered_bbox_circular_kernel_2 now inherits from the Rep of the kernel
   template parameter. To allow Lazy filtering mechanism on 
   Filtered_bbox_circular_kernel_2::{Circular_arc_2,Line_arc_2,Circular_arc_point_2}
   it was needed to explicit some conversions (with Lazy_circular_kernel, we add another
   implicit construction, thus the compiler cannot find the correct constructor).
In Filtered_kernel:
  *explicit some conversions
2010-11-10 15:52:53 +00:00
Sylvain Pion fe04258e2a Remove myself from maintainer files. 2010-09-15 12:32:09 +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 18bf09804d CORRECTED fixed const correctness for update_exact() 2010-03-30 17:15:45 +00:00
Laurent Rineau 22d26af20b Temporarily revert that revision, until Lazy_kernel and Lazy_exact_nt are
fixed as well
  | ------------------------------------------------------------------------
  | r54947 | fcacciola | 2010-03-26 14:34:13 +0100 (Fri, 26 Mar 2010) | 1 line
  | Changed paths:
  |    M /trunk/Filtered_kernel/include/CGAL/Lazy.h
  | 
  | Fixed const correctness for update_exact()
  | ------------------------------------------------------------------------
2010-03-29 09:37:49 +00:00
Fernando Cacciola 112cadf35e Fixed const correctness for update_exact() 2010-03-26 13:34:13 +00:00
Laurent Rineau f598159b32 Temporarily push a fwd declaration header for Filtered_kernel, to fix the
Polyhedron, Surface_reconstruction, and Mesh_3 demos.

The general guidelines about forward declaration will come later.
2009-11-25 14:42:45 +00:00
Andreas Fabri e3a44f4745 Get rid of a warning that nothing is returned on some paths 2009-11-24 14:08:44 +00:00
Laurent Rineau 83912b2952 Massive fix of svn:keywords properties, and $URL$ keyword. 2009-10-20 08:59:26 +00:00
Sébastien Loriot 4a016d7ba5 missing tag added 2009-10-19 12:10:13 +00:00
Sylvain Pion 5f2882dc84 Replace #undef CGAL_NO_STATIC_FILTERS by explicit true template argument. 2009-10-16 13:52:49 +00:00
Sylvain Pion d2a078803b Add a new Boolean constant in the kernel, Has_filtered_predicates. 2009-10-16 12:07:18 +00:00
Sylvain Pion b2f7758408 Add a Boolean template parameter UseStaticfilters to Filtered_kernel
that allows to specify if static filters are activated or not.
It allows to have both variants at the same time, which allows for
a faster test-suite.
CGAL_NO_STATIC_FILTERS still allows to tweak the default.
2009-10-16 11:06:44 +00:00
Stéphane Tayeb 48fb9616b7 Add missing includes. 2009-10-16 08:13:23 +00:00
Sébastien Loriot cbe427c6bf remove accent 2009-10-15 13:42:37 +00:00
Laurent Rineau 9d7a29cc44 Fix the encoding of the accent in "S'ebastien Loriot": UTF-8!! 2009-10-15 13:29:53 +00:00
Sylvain Pion bbc1580dab Update following file moves (oops). 2009-10-15 11:29:38 +00:00
Sylvain Pion 1d8ff591d9 Missing update after the renaming/move of Static_filters. 2009-10-14 13:02:57 +00:00
Sylvain Pion 7b944255b3 Move static filters stuff under CGAL/internal and CGAL::internal. 2009-10-14 09:58:44 +00:00
Sébastien Loriot bbabad8e7a Add semi-static filtered version of Compare_squared_radius_3 + test-suite.
Manual workaround for the case alpha=0
2009-10-14 08:21:51 +00:00
Stéphane Tayeb 475ce2145c Add stuff to allow BBox_2 & BBox_3 based predicates in exact kernels. 2009-10-09 12:19:23 +00:00
Sylvain Pion 2c7d4a0309 Rename and move Exact_type_selecter to internal::Exact_type_selector. 2009-09-17 10:00:37 +00:00
Sylvain Pion 8573fe26ce Rename CGALi to internal. 2009-08-24 17:10:04 +00:00
Sylvain Pion 927b432b39 typo : mecanism -> mechanism. 2009-08-10 15:57:03 +00:00
Andreas Fabri 9258181d75 Add typdef ... Kernel; ( bug reported by Michael Hoffmann) 2009-07-17 15:07:11 +00:00
Sylvain Pion f55c8e9a2f Renaming before documenting: Default_argument -> Default. 2009-04-10 21:55:24 +00:00
Sylvain Pion 532b4055db Micro-optimization : postpone computation of "eps" till it's really needed. 2008-12-21 15:56:20 +00:00
Sylvain Pion 897e94ac37 Add a new 3-way branch profiler, Profile_branch_counter_3, and use it in the semi-static filters. 2008-12-20 17:31:04 +00:00
Sylvain Pion 4251273447 Introduce a new class Set_ieee_double_precision, in order to provide
a better alternative to Protect_FPU_rounding(CGAL_FE_TONEAREST) which is
slightly unrelated.

If it works, then let's use it in the places that have recently been using
Protect_FPU_rounding for this issue.
2008-12-03 14:43:43 +00:00
Andreas Fabri 4864c144e7 Protection is outside the try block as VC8 has the CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG 2008-10-23 13:15:29 +00:00
Andreas Fabri 49df3ccb9e Protection is outside the try block as VC8 has the CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG 2008-10-23 13:01:01 +00:00
Andreas Fabri ebfc725015 Protection is outside the try block as VC8 has the CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG 2008-10-23 12:26:57 +00:00
Sylvain Pion 4aa1cb057a Remove my email adress from header files. 2008-10-11 20:21:08 +00:00
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