Commit Graph

163 Commits

Author SHA1 Message Date
Laurent Rineau 3c02e07b23 Try to fix my last revision about cmake_policy, with CMake-2.6.x
CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
x.y.z is greater than the current CMake version.
2011-04-28 17:45:22 +00:00
Laurent Rineau c97205f085 Global handling of CMake policies (second part)
We declare 
  cmake_minimum_required(VERSION 2.6.2)
but we also use
  cmake_policy(VERSION 2.8.4)
to declare that our CMake scripts are OK with all the defaults of CMake policies
as of CMake-2.8.4. That shuts down the warnings of CMake-2.8.4.

That way, we no longer need any declaration of specific policies.

Those two lines must be present and maintained in all our CMakeLists.txt
files (the one for the libraries, and also the one for examples and demos,
and maybe tests).
2011-04-28 10:55:56 +00:00
Laurent Rineau 0631943153 Uniform capitalization in our CMake script: use lowercase for commands 2011-04-28 10:36:18 +00:00
Laurent Rineau 6f05e72cef Global maintenance of CMakeLists.txt: CMake minimal version is -2.6.2
The documentation of CGAL says that the minimal version of CMake must be
CMake-2.6.2.
  - change cmake_minimum_required to VERSION 2.6.2
  - no longer any need for the policy CMP0003 (was for 2.4.x)
  - no longer any need for CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS (was for 2.4)
2011-04-27 18:06:32 +00:00
Andreas Fabri e7748c9dce Use SSE2 based versions of abs, min, max
Their usage is controlled with CGAL_USE_SSE2_FABS CGAL_USE_SSE2_MAX
2011-04-01 14:02:58 +00:00
Laurent Rineau 13bdda717f more powerfull version, to test four things at once 2011-03-17 18:01:12 +00:00
Laurent Rineau 68a662b195 Update CMakeLists.txt so that bench_simple_comparisons does not link with CGAL 2011-03-17 11:50:41 +00:00
Laurent Rineau f1558ad575 Reduce the size of the vector, to reduce the effect of the L1 cache 2011-03-17 10:57:33 +00:00
Laurent Rineau 73c767025b bench_simple_comparisons: do not use vector but an C array. 2011-03-17 10:44:08 +00:00
Laurent Rineau c9988f7796 Non-CGAL code to bench the simple comparison of doubles 2011-03-16 15:00:39 +00:00
Laurent Rineau 1086527e03 CMake trick: use set_property and the property COMPILE_DEFINITIONS to build
two different executable from one source.
2011-03-16 14:01:54 +00:00
Laurent Rineau 0223ee8abb Can also bench comparisons 2011-03-16 13:38:37 +00:00
Laurent Rineau ae39f5d707 Get_approx<T, has_approx> must be CGAL::Identity when has_approx==false 2011-03-16 11:40:02 +00:00
Andreas Fabri cbf54d65d8 Add a bench which only compares coordinates 2011-03-16 11:22:47 +00:00
Andreas Fabri e89ff5ba71 Testbed for figuring out why VC++ is much slower than g++ 2011-03-16 11:15:56 +00:00
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