Commit Graph

256 Commits

Author SHA1 Message Date
Andreas Fabri 17859993c8 Fix leaks: The assigment didn't remove an already existing bbox 2013-11-12 15:43:33 +01:00
Sébastien Loriot 64b130ba06 typo 2013-09-25 18:08:15 +02:00
Andreas Fabri 6c547e5663 Mainly added includes 2013-09-13 22:24:30 +02:00
Sébastien Loriot 496d75c256 update licenses that were incorrect after merging replace object feature branch 2013-06-21 15:06:17 +02:00
Sébastien Loriot c67ba90514 Merge branch 'Kernel-replace_object-pmoeller-old' into Kernel-replace_object-pmoeller
Conflicts:
	Circular_kernel_2/include/CGAL/Circular_kernel_2/Circular_arc_2.h
	Circular_kernel_2/include/CGAL/Circular_kernel_2/internal_functions_on_circle_2.h
	Installation/changes.html
	Kernel_d/doc/Kernel_d/CGAL/intersections_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Center_of_sphere_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Compare_lexicographically_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Component_accessor_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Compute_coordinate_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Contained_in_affine_hull_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Contained_in_linear_hull_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Contained_in_simplex_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Equal_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Has_on_positive_side_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Intersect_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Less_coordinate_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Less_lexicographically_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Less_or_equal_lexicographically_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Lift_to_paraboloid_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Linear_base_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Linear_rank_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Linearly_independent_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Midpoint_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Orientation_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Oriented_side_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Orthogonal_vector_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Point_dimension_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Point_of_sphere_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Point_to_vector_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Project_along_d_axis_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Side_of_bounded_sphere_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Side_of_oriented_sphere_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Squared_distance_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Value_at_d.h
	Kernel_d/doc/Kernel_d/Concepts/Kernel--Vector_to_point_d.h
2013-05-23 13:13:08 +02:00
Sébastien Loriot 918c111113 make Circular_kernel_2 and Spherical_kernel_3 work with a Lazy Linear Kernel
for some reason one should not inherit from the linear
intersection predicate
2013-03-22 15:04:38 +01:00
Sébastien Loriot debf525a02 correctly forward result_type in Circular_kernel_2
Conflicts:
	Circular_kernel_2/include/CGAL/Circular_kernel_2/Circular_arc_2.h
2013-03-22 11:29:38 +01:00
Sébastien Loriot c28b989b89 correctly forward result_type in Circular_kernel_2 2013-03-21 11:44:55 +01:00
Sébastien Loriot d84d793ead fix variant type for intersection of two circles 2013-03-18 08:20:48 +01:00
Sébastien Loriot 92487761fc trivial bugfix: intersecting two identical circles put a circle into the object
Conflicts:
	Circular_kernel_2/include/CGAL/Circular_kernel_2/internal_functions_on_circle_2.h
2013-03-18 08:20:26 +01:00
Sébastien Loriot 6d1ae7e0ac trivial bugfix: intersecting two identical circles put a circle into the object 2013-03-18 08:14:14 +01:00
Sébastien Loriot 91943b0df1 remove result_type from Intersect_2 to avoid having it defined in derived class
also fix the compilation loop in Intersect_2::operator()
2013-03-15 19:00:00 +01:00
Sébastien Loriot a8e6c05e9b rename K to CK and remove trailing whitespaces 2013-03-15 15:28:23 +01:00
Sébastien Loriot 4b603f40ba fix the compilation loop bug with result_of implemented with decltypes
I introduce a dedicated intersection traits and all CK2 member functions
use this traits instead of the general one. That way, the return type
is always correct. The same fix will be done for CK3
2013-03-15 13:21:05 +01:00
Sébastien Loriot ff32930056 fix issue introduced by the update of the branch 2013-03-15 13:08:31 +01:00
Sébastien Loriot 14429d2b8e fix compilation errors 2013-03-14 18:32:14 +01:00
Sébastien Loriot f97d6b8bd9 s/boost::result_of/cpp11::result_of/g 2013-03-14 10:38:13 +01:00
Sébastien Loriot d6905c61be Merge branch 'Kernel-replace_object-pmoeller-old' into Kernel-replace_object-pmoeller
Conflicts:
	AABB_tree/include/CGAL/AABB_tree.h
	Circular_kernel_2/include/CGAL/Circular_kernel_2/internal_functions_on_line_arc_2.h
	Intersections_3/include/CGAL/Intersections_3/intersection_3_1_impl.h
	Kernel_23/doc/Kernel_23/CGAL/intersections.h
	Kernel_23/doc/Kernel_23/Concepts/FunctionObjectConcepts.h
	STL_Extension/doc/STL_Extension/CGAL/iterator.h
2013-03-14 10:29:31 +01:00
Andreas Fabri c7e68385be remove unused variables and #if 0 buggy non used code 2013-02-26 16:52: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
Andreas Fabri c029f702a3 use more types 2013-02-07 11:02:14 +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
Andreas Fabri ee5b4683d0 deal with Triangulation_3, Polyhedron,Voronoi, Minkowski_sum_3 2013-01-31 09:47:54 +01:00
Sébastien Loriot 82b2ebc865 apply the cpp0x namespace renaming in all files 2012-12-19 11:33:17 +01:00
Philipp Möller a6b596396c Drop Result and Intersection_traits from Circular_kernel_2 2012-12-10 18:27:49 +01:00
Philipp Möller 03151d7bb7 intersection_return now also uses result_of 2012-12-10 17:20:36 +01:00
Philipp Möller d198458ca7 Merge branch 'origin-gsoc2011-boost_object-pmoeller' into Kernel-replace_object-pmoeller
Conflicts:
	.gitattributes
	AABB_tree/doc_tex/AABB_tree_ref/AABBGeomTraits.tex
	AABB_tree/doc_tex/AABB_tree_ref/AABBTraits.tex
	AABB_tree/doc_tex/AABB_tree_ref/AABB_traits.tex
	AABB_tree/include/CGAL/AABB_traits.h
	AABB_tree/include/CGAL/AABB_tree.h
	AABB_tree/test/AABB_tree/AABB_test_util.h
	Arrangement_on_surface_2/doc_tex/Arrangement_on_surface_2/arr_queries.tex
	Arrangement_on_surface_2/doc_tex/Arrangement_on_surface_2_ref/Arr_trapezoid_ric_point_location.tex
	Arrangement_on_surface_2/doc_tex/Arrangement_on_surface_2_ref/intro.tex
	Arrangement_on_surface_2/include/CGAL/Arr_batched_point_location.h
	Arrangement_on_surface_2/include/CGAL/Arr_point_location/Arr_lm_generator_base.h
	Arrangement_on_surface_2/include/CGAL/Arr_point_location/Arr_lm_random_generator.h
	Arrangement_on_surface_2/include/CGAL/Arr_point_location/Arr_trapezoid_ric_pl_impl.h
	Arrangement_on_surface_2/include/CGAL/Arr_point_location/Arr_walk_along_line_pl_impl.h
	Arrangement_on_surface_2/include/CGAL/Arr_trapezoid_ric_point_location.h
	Arrangement_on_surface_2/test/Arrangement_on_surface_2/point_location.cpp
	Circular_kernel_2/include/CGAL/Circular_kernel_2/internal_functions_on_line_arc_2.h
	Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_circular_arc_3.h
	Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_line_arc_3.h
	Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_sphere_3.h
	Filtered_kernel/include/CGAL/Lazy.h
	Filtered_kernel/include/CGAL/Lazy_kernel.h
	Intersections_2/include/CGAL/Triangle_2_Iso_rectangle_2_intersection.h
	Intersections_2/test/Intersections_2/test_intersections_2.cpp
	Intersections_3/test/Intersections_3/test_intersections_3.cpp
	Kernel_23/doc_tex/Kernel_23_ref/intersection.tex
	Kernel_23/include/CGAL/Kernel/Type_mapper.h
	Kernel_d/doc_tex/Kernel_d_ref/Kernel.tex
2012-12-04 17:57:53 +01: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
Philipp Möller 17797b7271 Merge next into this branch. There have been conflicts in the
AABB_tree documentation, Intersections_3 and Arrangement_on_surface_2.

The merge also introduced a regression for a bug fixed in R68387 which
fixed a bug in Triangle_3 Segment_3 intersections. The relevant
testcase is in triangle_other_intersection_test.cpp.
2012-04-24 15:06:19 +00:00
Philipp Möller 542f5d9c51 Merged ^/branches/next here 2012-04-16 08:53:21 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +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 9dac440ba9 Circular kernel fixed 2011-11-24 17:49:15 +00:00
Philipp Möller 0e0a200646 * Using result_of instead of Qualified_result_of
* limited refactoring in the lazy kernel
* still bugs in circular_3
* still specialization problem with iso_rectangle
2011-11-23 17:52:38 +00:00
Philipp Möller 91d59f8478 Macro to define global functions now respect Intersect_2::Result<> 2011-11-16 17:48:13 +00:00
Philipp Möller 94affd589d Moved the Intersection_result concept into the functors and adapted code in the lazy kernel to that change. 2011-11-15 15:40:22 +00:00
Philipp Möller 9051768cea Introduced Intersection_results as a Kernel concept for use in public APIs in favor over Intersection_traits. 2011-11-15 13:41:14 +00:00
Philipp Möller 450f438518 IT shortcut not circumvents specifying a kernel making it an actual shortcut and nicer for exposure in APIs 2011-11-10 11:06:26 +00:00
Philipp Möller a4e6d57cff Circular_kernel_2 and Circular_kernel_3 now use CGAL_INTERSECTION_VERSION for backwards compatability 2011-11-09 14:29:46 +00:00
Philipp Möller b07e2df018 * Circular_kernel is now Object free, doesn't compile with Lazy yet,
* hack for ternary function
2011-08-25 21:40:12 +00:00
Philipp Möller fad504838f * Circular_kernel: - Intersections now use variants
- removed most internal uses of Object
* Intersections: more traits, typofix, doc typofix, aliases IT23d
2011-07-20 22:54:03 +00:00
Laurent Rineau 369498d1e5 Cancel revision 64607. There had been a problem with the branch.
| ------------------------------------------------------------------------
  | r64607 | efif | 2011-07-05 17:27:04 +0200 (Tue, 05 Jul 2011) | 1 line
  | 
  | Merged feature-branch Aos_2-new_functors-tau into next
  | ------------------------------------------------------------------------
2011-07-06 11:11:58 +00:00
Laurent Rineau 2bbdde3dc1 backport trunk changes 2011-06-23 12:55:08 +00:00
Monique Teillaud d784ea5019 removed old stuff that was in dont_submit anyway 2011-06-21 06:58:57 +00:00
Sébastien Loriot d5c2355419 merge the modification from experimental packages to
the candidate branch of the feature + few name bug fixes
2011-04-12 11:34:37 +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 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
Laurent Rineau 4bc6a941fb Remove a std::cerr from my last commit. Sorry for the pollution. 2010-08-20 14:17:33 +00:00
Laurent Rineau 418d2a5f01 Refactoring of CK_2 Filtered_bbox_circular_kernel_2:
- The three classes Circular_arc_2, Circular_arc_point_2 and Line_arc_2
    now have a proper base class with bboxes,

  - The functors of Fb_ck_2 now directly use the functors of Ck_2 (without
    bbox filtering) templated by Fb_ck_2: that avoids all creations of
    temporary objects to convert between types CGAL::Foobar_2<CK_2> and
    CGAL::Foobar_2<Fb_ck_2>.

  - The number of functors in bbox_filtered_predicates has been reduced
    quite a lot: all functors that were not using bboxes have been
    removed. They were just forwarding all there calls to the functors
    without filtering. That was useless (and created a lot of temporary
    objects).

As a side effect, Fb_ck_2 now works even with -DCGAL_CFG_MATCHING_BUG_6
(VC++), because of the removal of the temporary objects.
2010-08-19 10:20:47 +00:00
Andreas Fabri 16010cf531 For VC++ we have to directly derive from Has_qrt 2010-08-10 08:02:28 +00:00
Sébastien Loriot 93a7d05699 Make the benchmark compiling again.
I try to run some of the mode 'alpha' as described in the
README_benchmark_CK2.txt but this ended up with different
preconditions non validated (for alpha=1,4,5 or 8 with beta=9)
2010-06-22 09:37:10 +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
Andreas Fabri cc7b417bd4 fix bugs in VC++ workarounds 2010-05-06 09:27:16 +00:00
Sébastien Loriot f295f910f0 change LK:: to CK:: (bug on windows) 2010-05-06 09:19:35 +00:00
Andreas Fabri 83cb1edf06 Reindent and removal of duplicate typedef for Circle_2 2010-05-06 08:20:53 +00:00
Pedro Machado Manhaes de Castro 9ee39b4642 qualified result type issues 2010-04-30 16:41:23 +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
Laurent Rineau 83912b2952 Massive fix of svn:keywords properties, and $URL$ keyword. 2009-10-20 08:59:26 +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
Laurent Rineau fd76a2222d - Remove "using CK::Linear_kernel::Do_intersect_2::operator()" in
CircularFunctor::Do_intersect_2 because
CK::Linear_kernel::Do_intersect_2::operator() and
CircularFunctor::Do_intersect_2 have exactly the same signature! The Intel
compiler is right to say there is an ambiguity in the matching.
2009-07-10 08:21:44 +00:00
Efi Fogel 4b22c83e54 cleanup 2009-07-07 08:23:06 +00:00
Sylvain Pion f0ed774e37 Move CGAL::array to namespace CGAL::cpp0x, like tuple. 2009-04-30 14:03:52 +00:00
Pedro Machado Manhaes de Castro 66f53a570b testing calls for VC8 + bug fix 2008-10-31 17:08:32 +00:00
Pedro Machado Manhaes de Castro e7ee6ea845 fix the VC8 compatibility 2008-10-24 23:36:02 +00:00
Andreas Fabri c58989d70e make the linear kernel testsuite work with the circular kernel on VC8 2008-10-24 12:53:39 +00:00
Andreas Fabri dd0b52dfe5 make the linear kernel testsuite work with the circular kernel on VC8 2008-10-24 09:52:30 +00:00
Pedro Machado Manhaes de Castro 36b4d94397 Cmake ok name for project 2008-10-22 23:45:26 +00:00
Pedro Machado Manhaes de Castro 0d8b9ac616 Linear_kernel with CK_2 test + ambiguity fix 2008-10-22 13:32:25 +00:00
Pedro Machado Manhaes de Castro 2512af15a0 testing CK with the test of Kernel as well, (and small bug fix) 2008-10-22 11:04:08 +00:00
Andreas Fabri cb53f0f8ae Renamed template parameter as it leads to typmixup for VC8 2008-10-21 11:54:39 +00:00
Laurent Rineau 1d7a5b1625 Fix indentation. 2008-10-21 08:06:37 +00:00
Laurent Rineau ce24967b2c Modify the indentation, to help understanding the code (CRTP means a lot of
templates arguments).
2008-10-21 08:04:39 +00:00
Laurent Rineau 59e9173cb9 Modify the indentation, in order to understand well the templates arguments. 2008-10-21 07:32:36 +00:00
Pedro Machado Manhaes de Castro 5476d1bd01 testing Line_2, Circle_2 as well 2008-10-16 14:41:36 +00:00
Pedro Machado Manhaes de Castro f86250b818 inheritance 2008-10-15 16:21:52 +00:00
Pedro Machado Manhaes de Castro 18638671c1 removing some useless defines and trying something for GCC < 4.3 2008-10-15 16:17:20 +00:00
Pedro Machado Manhaes de Castro 005cc1ccb7 Fixing for Line_2, Circle_2 on BK stuff 2008-10-13 20:34:01 +00:00
Pedro Machado Manhaes de Castro 3e0b9e1ed4 Trying to be more precise on the namespaces so VC8 will be happy (trying at least) 2008-10-13 18:12:12 +00:00
Pedro Machado Manhaes de Castro e80226ce3c Improving the testsuite and fixing some problems 2008-10-13 17:58:36 +00:00
Pedro Machado Manhaes de Castro 8bf93852dd tunning the tests for global functions CK2 2008-10-03 14:45:43 +00:00
Pedro Machado Manhaes de Castro e33078a4e9 Circular_arc_point_2 has a constructor for Point_2 2008-10-03 11:26:19 +00:00
Pedro Machado Manhaes de Castro f39a5d6cd4 pre-condition for split_2 2008-10-02 15:45:54 +00:00
Pedro Machado Manhaes de Castro 71b58f8eb3 <, <=, >=, > operations for Circular_arc_point_2 2008-10-02 15:42:13 +00:00
Pedro Machado Manhaes de Castro 1e88811a5e point_in_x_range does not look as cool as has_in_x_range (in conformity with CGAL) 2008-10-02 14:30:30 +00:00
Pedro Machado Manhaes de Castro a379bd57d4 global functions in a single file 2008-10-01 15:24:23 +00:00
Pedro Machado Manhaes de Castro 25983e68bb only one global function file 2008-10-01 15:12:54 +00:00
Pedro Machado Manhaes de Castro e7e4e33287 Only one global function file -> global_functions_circular_kernel_2.h 2008-10-01 15:12:01 +00:00
Pedro Machado Manhaes de Castro f125fd60b0 Remove from visible stuffs the compare_y_to_left_2 2008-10-01 12:27:57 +00:00
Pedro Machado Manhaes de Castro 2775e451e5 Some Not Documented line comments 2008-10-01 12:25:23 +00:00
Pedro Machado Manhaes de Castro 939667002a remove compare_y_to_left 2008-10-01 10:41:33 +00:00
Pedro Machado Manhaes de Castro e752ba2382 global function for the functor compare_y_to_left 2008-10-01 09:18:26 +00:00
Pedro Machado Manhaes de Castro b610bdb783 testsuite for make_xy_monotone + remove some warnings 2008-10-01 09:12:03 +00:00
Pedro Machado Manhaes de Castro 15f7610a40 cleaning 2008-09-30 15:52:44 +00:00
Pedro Machado Manhaes de Castro 4124531409 test for {x,y}_extremal_point global function 2008-09-30 15:48:34 +00:00
Pedro Machado Manhaes de Castro cfaa7f3b7c Comment line on some non-documented stuff, it exists (i.e. for tests) but it is not documented 2008-09-30 14:38:33 +00:00
Pedro Machado Manhaes de Castro ca8f6c806a removing Advanced_make_{x,xy}_monotone_2, On_upper_part_2, Construct_circular_arc_2 operator()(const Circular_arc_2 &A, bool b, const Circle_2& ccut, bool b_cut), Equal_2 for types that do not match 2008-09-30 13:59:18 +00:00
Pedro Machado Manhaes de Castro 32f1dbffaf Compute_Circular_{x,y}_2 to Compute_circular_{x,y}_2 2008-09-30 13:44:20 +00:00
Pedro Machado Manhaes de Castro 2dbdeb2c71 not necessary anymore 2008-09-30 13:37:10 +00:00
Pedro Machado Manhaes de Castro d7e7e23c1a sending to trash some unfortunate global functions 2008-09-30 13:36:33 +00:00