mirror of https://github.com/CGAL/cgal
Current gdb python pretty printers work also for Circular_kernel_2 and
Filtered_kernel.
This commit is contained in:
parent
93d071b2ce
commit
aebef3c971
|
|
@ -1,13 +1,22 @@
|
|||
#include <CGAL/Simple_cartesian.h>
|
||||
#include <CGAL/Cartesian.h>
|
||||
#include <CGAL/Gmpq.h>
|
||||
#include <CGAL/Algebraic_kernel_for_circles_2_2.h>
|
||||
#include <CGAL/Circular_kernel_2.h>
|
||||
#include <CGAL/Filtered_kernel.h>
|
||||
|
||||
typedef CGAL::Simple_cartesian<double> K;
|
||||
typedef CGAL::Cartesian<double> K2;
|
||||
typedef CGAL::Simple_cartesian<CGAL::Gmpq> K3;
|
||||
typedef K3::RT FT3;
|
||||
|
||||
typedef CGAL::Algebraic_kernel_for_circles_2_2<double> AK;
|
||||
typedef CGAL::Circular_kernel_2<K, AK> CK;
|
||||
|
||||
typedef CGAL::Filtered_kernel<K> FK;
|
||||
|
||||
int main() {
|
||||
K::Point_2 default_p;
|
||||
K::Point_2 p(-1./3, 2.);
|
||||
K::Vector_2 v = p - CGAL::ORIGIN;
|
||||
K::Circle_2 c(p, 10);
|
||||
|
|
@ -17,7 +26,17 @@ int main() {
|
|||
K2::Circle_2 c2(p2, 10);
|
||||
|
||||
// no correct pretty-printer for CGAL::Gmpq
|
||||
K3::Point_3 p3(-3, 10, 2);
|
||||
K3::Vector_3 v3 = p3 - CGAL::ORIGIN;
|
||||
K3::Point_2 p3(-3, 10);
|
||||
K3::Vector_2 v3 = p3 - CGAL::ORIGIN;
|
||||
|
||||
CK::Point_2 p4;
|
||||
CK::Vector_2 v4;
|
||||
|
||||
FK::Point_2 default_p5;
|
||||
FK::Vector_2 default_v5;
|
||||
|
||||
FK::Point_2 p5(1, 2);
|
||||
FK::Vector_2 v5(3, 4);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue