From d92a1b3fffd851101aa9cced51cd3ae1f36f9d6a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 12 Jun 2012 14:12:14 +0000 Subject: [PATCH] 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. --- Filtered_kernel/dont_submit | 2 +- .../examples/Filtered_kernel/lazykernel.cpp | 117 ------------------ 2 files changed, 1 insertion(+), 118 deletions(-) delete mode 100644 Filtered_kernel/examples/Filtered_kernel/lazykernel.cpp diff --git a/Filtered_kernel/dont_submit b/Filtered_kernel/dont_submit index ab973d00ed1..4235b37d5e9 100644 --- a/Filtered_kernel/dont_submit +++ b/Filtered_kernel/dont_submit @@ -1,3 +1,3 @@ TODO_static_filters Makefile -lazykernel.cpp + diff --git a/Filtered_kernel/examples/Filtered_kernel/lazykernel.cpp b/Filtered_kernel/examples/Filtered_kernel/lazykernel.cpp deleted file mode 100644 index 739575ffc14..00000000000 --- a/Filtered_kernel/examples/Filtered_kernel/lazykernel.cpp +++ /dev/null @@ -1,117 +0,0 @@ -#define CGAL_INTERSECT_WITH_ITERATORS_2 1 -#include -#include -#include -#include -#include -#include "Cartesian_I.h" - - -typedef CGAL::Cartesian_I SC; -typedef CGAL::Lazy_kernel > K; - -typedef K::FT FT; -typedef K::Point_2 Point_2; -typedef K::Vector_2 Vector_2; -typedef K::Segment_2 Segment_2; -typedef K::Circle_2 Circle_2; - -typedef CGAL::Bbox_2 Bbox_2; -typedef CGAL::Object Object; - - -int main() -{ - CGAL::Lazy_exact_nt nt = 1; - nt = nt + nt * nt; - - K::Intersect_with_iterators_2 iwi; - - CGAL::set_pretty_mode(std::cout); - K::Intersect_with_iterators_2 intersect; - - Segment_2 s1(Point_2(0,1), Point_2(2,1)); - Segment_2 s2(Point_2(1,0), Point_2(1,2)); - - std::list intersections; - intersect(s1, s2, std::back_inserter(intersections)); - for(std::list::iterator it = intersections.begin(); it != intersections.end(); it++){ - if(const Point_2 *ip = CGAL::object_cast(&*it)){ - std::cout << "intersection at " << *ip << std::endl; - } - } - - FT ft = 3.1415; - std::cout << "ft = " << ft << std::endl; - - ft *= ft; - std::cout << "ft^2 = " << ft << std::endl; - std::cout << "ft^2.depth() = " << ft.depth() << std::endl; - std::cout << "ft^2.exact() = " << ft.exact() << std::endl; - Point_2 p(ft, 2.22); - Point_2 q(9,9); - - CGAL::Bbox_2 bb = p.bbox(); - - Segment_2 s(p,q); - - Segment_2 s3(Point_2(0,1), Point_2(2,1)); - Segment_2 s4(Point_2(1,0), Point_2(1,2)); - - CGAL::Object o = intersection(s3,s4); - - if(const Point_2 *rp = CGAL::object_cast(&o)){ - std::cout << "Intersection is a point:" << std::endl; - std::cout << *rp; - } - - - Point_2 r = K::Construct_vertex_2()(s,0); - assert(r == s.source()); - std::cout << r << std::endl; - - - Point_2 mp = midpoint(p,q); - - - FT rx = r.x(); - - std::cout << rx << std::endl; - - - Vector_2 v1(1,1), v2(1,1); - - v1 = p - q; - - v1 = mp - CGAL::ORIGIN; - - q = CGAL::ORIGIN + v1; - - std::cout << q << std::endl; - - if(v1 == v2){} - - if(K::Compare_distance_2()(p,q,r)== CGAL::SMALLER) - { - std::cout << "smaller" << std::endl; - } - - Circle_2 circ(CGAL::ORIGIN, p, q); - std::cout << "\nCircle:\n " << circ << std::endl; - - Point_2 center = circ.center(); - FT sr = circ.squared_radius(); - std::cout << "\nCenter = " << center << "\nSquared radius = " << sr << std::endl; - - sr += 7812; - std::cout << "squared radius + 7812 = " << sr << std::endl; - - - circ.exact(); - std::cout << "\nCircle after circ.exaxt():\n " << circ << std::endl; - std::cout << "\nCenter = " << center << "\nSquared radius = " << sr << std::endl; - - std::cout << "Done" << std::endl; - - return 0; -}