Commit Graph

247 Commits

Author SHA1 Message Date
Sébastien Loriot 7baa997ce1 Merge branch 'Filtered_kernel-ring-glisse'
This branch adds an additional way to filter predicates that are only doing
operations using a ring number type. In case of failure, a RT is used rather
than an FT which speeds things up.

Successfully tested in CGAL-4.3Ic-37
2013-05-23 11:15:32 +02:00
Laurent Rineau 4d1d8a83ba Fix print_dag for Lazy_exact_nt 2013-05-03 14:17:44 +02:00
Laurent Rineau 73a30bb267 Repare print_dag in Lazy
It has been accidentally removed by the Philipp's patch that uses Boost PP.
2013-04-18 14:45:46 +02:00
Laurent Rineau b868b2ab2b Fix warnings 2013-04-18 14:33:12 +02:00
Sébastien Loriot ba54252b16 forgot to count the number of filter failures 2013-04-12 12:06:40 +02:00
Laurent Rineau 492c8442eb Fix a typo in a comment 2013-04-09 17:37:00 +02:00
Sébastien Loriot 9fcf46e11a replace CGAL_[kernel/qpe/triangulation/]_assertion by assert in tests
this should be the case, following our guidelines.

using:
find */test/* -name '*.[hc]*' | xargs sed -i 's/CGAL_assertion/assert/g'
2013-03-21 10:50:55 +01:00
Laurent Rineau 2d8da664a3 Merge branch 'CGAL-fix_warnings-gdamiand'
Conflicts:
	.gitignore
	Skin_surface_3/examples/Skin_surface_3/CMakeLists.txt
2013-02-22 13:02:37 +01:00
Laurent Rineau 26a7e70785 New license.txt files (eol changes)
The new version 2.13.0 of licensecheck has changed the spaces at eol.
2013-02-19 16:46:39 +01:00
Andreas Fabri d4b251c8fd Use int as difference_type as it may only be in [-2, 2] 2013-02-07 16:01:48 +01:00
Sébastien Loriot f0f34d45fa workaround to force the usage of the tr1 implementation of result_of from boost
see http://www.boost.org/doc/libs/1_52_0/libs/utility/utility.htm#result_of
2013-02-04 11:30:28 +01:00
Marc Glisse 2ba8c67ba3 Re-implement ring filtering based on CGAL_Kernel_pred_RT. 2013-01-14 15:20:34 +01:00
Marc Glisse c1183f781b In the lazy kernel, forward more builtin types (like long). 2013-01-03 12:21:35 +01:00
Marc Glisse a78d419ba8 Fix the homogeneous case. 2012-12-24 23:37:59 +01:00
Marc Glisse 215ceca0fb Reminder that this currently breaks homogeneous kernels and needs to be
fixed.
2012-12-24 15:53:00 +01:00
Marc Glisse 844e285f32 For a hardcoded list of "safe" predicates, use a ring type as the exact
type in Filtered_kernel_base.
2012-12-24 14:16:39 +01:00
Marc Glisse 571f370e28 Rename Exact_type_selector to Exact_field_selector. 2012-12-24 12:20:13 +01:00
Sébastien Loriot 0b4e9c67a4 inherits from Filtered_predicates rather than defining a completely new one
I just needed to added a constructor where the approximate predicates and exact
one needed to be provided (which is reasonable and cannot hurts thanks to the
explicit)
2012-12-21 11:09:39 +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 9347a5d812 remove empty lines at end of dont_submit files 2012-11-27 08:35:33 +01:00
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | 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.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
Marc Glisse a758751485 Remove / comment out unused local typedefs. Fix one place where FT was used instead of RT (homogeneous coordinates, probably never compiled). 2012-07-28 06:21:06 +00:00
Laurent Rineau 4953bbbc86 Remove buggy executable bits 2012-07-04 19:28:22 +00:00
Laurent Rineau ad2b26dbed Fix a warning about unused variables
And fix a comment (t=1 instead of t=0).
2012-06-18 13:04:53 +00:00
Laurent Rineau 41ba29e19a Factorize code of Do_intersect(Bbox_3, <something>)
Uniform use of do_intersect_bbox_segment_aux(..) with various Boolean
template arguments.
2012-06-15 15:06:34 +00:00
Laurent Rineau 1c6ba1851b Factorize code in CGAL/internal/Static_filters/Do_intersect_3.h
The static filters of Do_intersect(BBox_3, Segment_3) and
Do_intersect(BBox_3, Segment_3) now use do_intersect_bbox_segment_aux(..)
from CGAL/internal/Intersections_3/Bbox_3_Segment_3_do_intersect.h
2012-06-15 14:57:36 +00:00
Laurent Rineau a72bd80380 Pass the bbox as argument instead of the six coordinates
That increased the perfs! :-)
2012-06-14 17:04:35 +00:00
Laurent Rineau 503d441f1e merge changes from next 2012-06-13 15:51:29 +00:00
Laurent Rineau d92a1b3fff Remove examples/Filtered_kernel/lazykernel.cpp (was in dont_submit)
That example no longer compiles. It was hidden by dont_submit for a long
time, but with a full branch-build (with WITH_demos and WITH_examples
enabled), it is in the way.
2012-06-12 14:12:14 +00:00
Philipp Möller 1ea390e58b Some macros were missing CGAL_ prefix.
Followup of revision 69073:
  | ------------------------------------------------------------------------
  | r69073 | pmoeller | 2012-05-11 11:20:13 +0200 (Fri, 11 May 2012) | 3 lines
  | 
  | Merged  ^/branches/features/Result_of-pmoeller
  | 
  | 
  | ------------------------------------------------------------------------
2012-05-11 15:23:31 +00:00
Philipp Möller 542f5d9c51 Merged ^/branches/next here 2012-04-16 08:53:21 +00:00
Laurent Rineau 00621279fb Commit the new version of the static filter. Too slow for the moment. 2012-03-23 13:02:46 +00:00
Laurent Rineau a37c74d534 Add license files, per package 2012-01-16 15:54:22 +00:00
Laurent Rineau d26c3b4caa Turn LGPLv2 into LGPLv3+ for new static filters created after the branch. 2012-01-13 17:00:15 +00:00
Laurent Rineau 5b5dd33848 merge changes from next 2012-01-09 12:33:39 +00:00
Philipp Möller 58a6c86cbc * fixed include issue
* some work to make Lazy work with C++11
2011-12-15 15:45:39 +00:00
Philipp Möller f64a69a6cd merged next for testsuite run 2011-12-14 16:45:31 +00:00
Philipp Möller 37a83b5416 Removed unused argument to sanitize compilation output 2011-12-14 15:18:32 +00:00
Laurent Rineau cc6c9ebb76 Fix the profiling macro calls in the static filter of Equal_3 2011-12-13 16:30:53 +00:00
Laurent Rineau 1aa74178ea Reindentation/whitespace before that can be merged in next 2011-12-12 11:59:16 +00:00
Philipp Möller fd5edd2745 Fixed bug that caused at not to be updated after an exact calculation. 2011-12-09 16:08:35 +00:00
Andreas Fabri 2effc4c783 Add static filter for Equal_3::operator(Point_3,Point_3) 2011-12-09 11:42:35 +00:00
Andreas Fabri 8fe1642de3 Is_degenerate now uses the statically filtered version of Equal 2011-12-09 11:41:59 +00:00
Andreas Fabri 51874a6c2c Add an explanation 2011-12-08 15:10:58 +00:00
Andreas Fabri 32543b08f8 do_intersect(Segment_3, Triangle_3) only calls orientation(..)
so we can avoid putting doubles in intervals and unpacking
them inside statically filtered orientation tests
2011-12-08 14:50:59 +00:00
Laurent Rineau ffde9be118 Change the name of the backward compatibility macro
CGAL_DISABLE_RECENTLY_ADDED_STATIC_FILTERS was misleading because
of... "recently"! What would mean that macro in several months?

I have changed it to CGAL_DISABLE_STATIC_FILTERS_ADDED_2011. As a matter of
fact, only GeometryFactory has added static filters to the CGAL kernel
during year 2011, and it was only the filters added November/December:
  Is_degenerate_3   -- only for Ray_3 and Segment_3
  Do_intersect_3    -- only for BBox_3-Ray_3 and BBox_3-Segment_3
  Angle_3           -- only the operator()(Point_3, Point_3, Point_3)
2011-12-08 13:43:02 +00:00
Philipp Möller ffa1d4ffd5 merged next again 2011-12-07 15:22:54 +00:00
Laurent Rineau 19633dbf7a Reintegrate /branches/features/Static_filter_is_degenerate-GF
This adds a static filter for Is_degenerate_3.
2011-12-07 11:17:39 +00:00
Philipp Möller b8a96e9114 Merged next to this branch. 2011-12-06 17:11:01 +00:00
Laurent Rineau d9dc5f4ebb Revert that commit:
| ------------------------------------------------------------------------
  | r66638 | afabri | 2011-12-02 23:00:04 +0100 (Fri, 02 Dec 2011) | 1 line
  | 
  | Remove unnecessary abs()
  | ------------------------------------------------------------------------
It must be applied to a new branch of next.
2011-12-06 16:43:14 +00:00