Subject: CGAL users discussion list
List archive
- From: Michael Balzer <>
- To:
- Subject: Problem with 2D Apollonius Graph
- Date: Sat, 28 Jul 2007 21:03:08 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=fv6CmTEwDbuYCWtreagUwSliDqIyWQUIzrXa9Ct9DIAcSxXnB6UhCa8tNqGM/Hag1yB1XBvWDUXKR11eoCOh3nhZsnh1S9A8CP14c80NmUhOHY1omStlSjNwHox22pzhFzvc/HywnsofcUncdfbGrAN7bJU+AUTFf2VIjhsFBd8=
Hello,
i want to extract the Apollonius diagram from the Apollonius graph by using the function "draw_dual( Stream &str )" with a custom stream class.
When i implement the stream class with the required stream operators for Segment_2, Line_2, and Ray_2, I get the following compiler error using MSVC (sorry for having german compiler messages, but I hope you get it anyway):
/////////////////////////////////////////////////////////////
C:\Programme\CGAL-3.3\include\CGAL\Hyperbola_segment_2.h(141) : error C2784: 'CGAL::Root_of_2<RT> CGAL::operator /(const CGAL::Root_of_2<RT> &,const CGAL::Root_of_2<RT> &)': Vorlagenargument für 'const CGAL::Root_of_2<RT_> &' von 'CGAL::Hyperbola_segment_2<Gt>::FT' konnte nicht hergeleitet werden
with
[
Gt=CGAL::Agt2<CGAL::Cartesian<CGAL::MP_Float>>
]
C:\Programme\CGAL-3.3\include\CGAL\Root_of_2.h(1307): Siehe Deklaration von 'CGAL::operator`/''
C:\Programme\CGAL-3.3\include\CGAL\Hyperbola_segment_2.h(88): Bei der Kompilierung der Memberfunktion 'void CGAL::Hyperbola_segment_2<Gt>::generate_points(std::vector<_Ty> &) const' der Klassenvorlage
with
[
Gt=CGAL::Agt2<CGAL::Cartesian<CGAL::MP_Float>>,
_Ty=CGAL::Hyperbola_2<CGAL::Agt2<CGAL::Cartesian<CGAL::MP_Float>>>::Point_2
]
C:\Programme\CGAL-3.3\include\CGAL\Apollonius_graph_2.h(608): Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage 'CGAL::Hyperbola_segment_2<Gt>'
with
[
Gt=CGAL::Agt2<CGAL::Cartesian<CGAL::MP_Float>>
]
apolloniusgraph.cpp(24): Siehe Verweis auf Instanziierung der kompilierten Funktionsvorlage 'Stream &CGAL::Ag2<Gt>::draw_dual<Stream>(Stream &) const'
with
[
Stream=Stream,
Gt=CGAL::Agt2<CGAL::Cartesian<CGAL::MP_Float>>
]
/////////////////////////////////////////////////////////////
Now I'm not sure what I may have done wrong. The other parts of the code which use the same typedefs et cetera are working fine.
When I examine the code in "Apollonius_graph_2.h", which defines the function "draw_dual(...)", I notice that additionally Hyperbola_2, Hyperbola_segment_2, and Hyperbola_ray_2 try to access the stream. But defining additional stream operators for these primitives doesn't help.
Has someone an idea for this issue?
Thanks,
Michael :)
- Problem with 2D Apollonius Graph, Michael Balzer, 07/28/2007
Archive powered by MHonArc 2.6.16.