Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] use of cgal

Subject: CGAL users discussion list

List archive

[cgal-discuss] use of cgal


Chronological Thread 
  • From: Hulusi <>
  • To:
  • Subject: [cgal-discuss] use of cgal
  • Date: Tue, 8 Jun 2010 05:41:11 -0700 (PDT)


Hello everyone,

I have just installed CGAL-3.6, and I have no idea how to use it with visual
c++. Could anyone help me to execute the example given in
"http://acg.cs.tau.ac.il/cgal-at-tau/installing-cgal-and-related-programs-on-windows/";
or any other examples.

the example is :

#include <iostream>
#include <boost/format.hpp>
#include <QtGui>
#include <CGAL/Qt/GraphicsViewNavigation.h>
#include <QLineF>
#include <QRectF>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QGraphicsScene scene;
scene.setSceneRect(0,0, 100, 100);
scene.addRect(QRectF(0,0, 100, 100), QPen(QColor(255,0,0)));
scene.addLine(QLineF(0,0, 100, 100));
scene.addLine(QLineF(0,100, 100, 0));
QGraphicsView* view = new QGraphicsView(&scene);
CGAL::Qt::GraphicsViewNavigation navigation;
view->installEventFilter(&navigation);
view->viewport()->installEventFilter(&navigation);
view->setRenderHint(QPainter::Antialiasing);
view->show();
return app.exec();
}

Thanks a lot!

Hulusi

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/use-of-cgal-tp2247316p2247316.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page