Skip to Content.
Sympa Menu

cgal-discuss - Input (>>) Operator does not work using Circular Kernel and Line_Arc_2

Subject: CGAL users discussion list

List archive

Input (>>) Operator does not work using Circular Kernel and Line_Arc_2


Chronological Thread 
  • From: "Thomas Zangl - Home" <>
  • To: <>
  • Subject: Input (>>) Operator does not work using Circular Kernel and Line_Arc_2
  • Date: Tue, 5 Jun 2007 20:29:40 +0200


Hi!

Why does the >> Operator not work using the Circual Kernel and
Line_Arc_2?

This is my code:
[...]
#include <CGAL/Exact_circular_kernel_2.h>

#include <CGAL/Arr_circular_line_arc_traits.h>

#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_naive_point_location.h>

typedef CGAL::Exact_circular_kernel_2 Circular_k;

typedef Circular_k::Circular_arc_point_2 Point_2;
typedef Circular_k::Circle_2 Circle_2;
typedef Circular_k::Circular_arc_2 Circular_arc_2;
typedef Circular_k::Line_arc_2 Line_arc_2;
[...]

std::ifstream iEdgesFile("data/edges_tmp",std::ios::in);
LineContainer lines;
if (!iEdgesFile) {
std::cout << "EdgesFile not found" << std::endl;
return 1;
}
std::cout <<"Reading file..." << std::endl ;
Line_arc_2 l;
while ( iEdgesFile >> l ) {
std::cout << "XY: " << l;
//lines.push_back (l);
}

This is the compile error:

/usr/bin/g++ -I../../include -Wall
'-I/home/TZi/CGAL-3.3/include/CGAL/config/i686_CYGWINNT-5.1_g++-3.4.4'
'-I/home/TZi/CGAL-3.3/include' -I/usr/include/boost-1_33_1
-I/usr/X11R6/include -I/usr/include/qt3 -c intersect_circle_lines.cpp
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:
In function `std::istream& CGAL::operator>>(std::istream&,
CGAL::Circular_arc_point_with_bbox_2<BboxKernel>&) [with BK =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>]':
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Line_arc_with_bbox_2.h:168:
instantiated from `std::istream& CGAL::operator>>(std::istream&,
CGAL::Line_arc_with_bbox_2<CK>&) [with CK =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>]'
intersect_circle_lines.cpp:91: instantiated from here
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:122:
error: no type named `CK' in `class
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>'
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:123:
error: no type named `CK' in `class
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>'
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:124:
error: no type named `CK' in `class
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>'
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:126:
error: no type named `CK' in `class
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>'
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:127:
error: no type named `CK' in `class
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>'
/home/TZi/CGAL-3.3/include/CGAL/Filtered_bbox_circular_kernel_2/Circular_arc_endpoint_with_bbox_2.h:129:
error: no type named `CK' in `class
CGAL::Filtered_bbox_circular_kernel_2<CGAL::CK1>'
make: *** [intersect_circle_lines.o] Error 1

Please help!

Best regards,
--
----------------------------------------------------------------
,yours Thomas Zangl, Bakk.rer.soc.oec. -

-
- Freelancer - IT Consulting & Software Development -
- Student of Software Development-Economy (Master) -



Archive powered by MHonArc 2.6.16.

Top of Page