#include #include #include #include #include #include #include #include #include #include #include "PS_Stream.C" typedef CGAL::Point_2< CGAL::Cartesian > Point; typedef CGAL::Segment_2< CGAL::Cartesian > Segment; typedef CGAL::Ray_2< CGAL::Cartesian > Ray; typedef CGAL::Triangle_2< CGAL::Cartesian > Triangle; typedef CGAL::Iso_rectangle_2< CGAL::Cartesian > Rect; typedef CGAL::Circle_2< CGAL::Cartesian > Circle; typedef CGAL::Bbox_2 BBox; int main() { CGAL::PS_Stream::PS_BBox bb(-2,-2,2,2); // CGAL::PS_Stream ps(bb,400,500,"titi.ps",CGAL::PS_Stream::QUIET_EPS); // CGAL::PS_Stream ps(bb,10,20,cout,CGAL::PS_Stream::QUIET); CGAL::PS_Stream ps(bb,300,"toto.ps",CGAL::PS_Stream::QUIET_EPS); // CGAL::PS_Stream ps(bb,10,cout,CGAL::PS_Stream::QUIET); // CGAL::PS_Stream ps(bb,"titi.ps",CGAL::PS_Stream::QUIET_EPS); // CGAL::PS_Stream ps(bb,cout,CGAL::PS_Stream::QUIET); CGAL::PS_Stream::Grid g(0.5,0.5); CGAL::PS_Stream::Axis a(1.0,1.0,2); Point p(-1,1), q(1,1), r(1,-1), s(-1,-1),som(0,2), b1(-0.5,1.5), b2(0.5,1.5), o(0,0); Triangle tr(b1,b2,som); // Rect re(p,q); Circle ci(o,1.0); CGAL::PS_Stream::Label l1("Centre"); // CGAL::PS_Stream::Label l2("Point p Label with another size"); // CGAL::PS_Stream::Latex_Label l3("This is a Latex Label {$\\alpha^{y}_{i}$}"); // CGAL::PS_Stream::Latex_Label l4("{Another Latex Label : // // $\\sum_{i=1}^{n} x_{i} = // /\\int_{0}^{1}f$}"); ps << p; ps << CGAL::line_width(2); ps << point_style(CGAL::PS_Stream::FDOT) << q; ps << point_style(CGAL::PS_Stream::FBOX) << r; ps << point_style(CGAL::PS_Stream::ICROSS) << s; ps << point_style(CGAL::PS_Stream::FDOT) << CGAL::point_size(2) << o; ps << CGAL::fill(true) << fill_color(CGAL::Color(0,255,0))<