Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] How to draw a Triangulation with Qt?
- Date: Tue, 21 Aug 2018 10:52:40 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:vwoNRRQuR4fatt9gC2+0ufg7ptpsv+yvbD5Q0YIujvd0So/mwa6yYx2N2/xhgRfzUJnB7Loc0qyK6/+mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbF/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHJhMJtgqxVoxWhqB5xw4Hbb4+aKOFzfr/Ac94AWWZNQtpdWzJHD4ihb4UPFe0BPeNAooXzoVUBtwa+BROyC+Pp1j9Dm2P43aw80+s/Cw7GwRErE9YQvXrVsNj7MrweX+Grw6nPyDXMce9W2S396YbIaB8uve2MXbVqccvRzEUjGR7Og1KUqYP/IjOVzPoCs26H7+Z6T+KvimgnpB9rrTiy3cojlobJiZgRylze8iV52ok1KMS+RUVmb9CkF55QuDubN4twWs4tX25otzw+yrEcvp67ZicKxIwoxxHBbPyHdpaH4g75VOeRLzd3nm5qeK64hxao8Ums0PHzVs6x0FtMsyFLkcHMu2gQ2xDN7sWLUOZx80Ol1DqV0w3e6/tILE8omabDL5Mt3qQ8m5kSvEjZHSL7mV/6gLKSe0gi5+Om8f7oYq/8qZ+ZL4J0ih/xMqApmsGnB+Q3LAYOU3aB9eui0r3j5lf1QLtQjvEuk6nZto7VJdgDq6KkHQNY1pwv5wu7AjqiytgVmXgKIEhKdR6bl4TpPkvBIPH8DfexmVSslzJryujCPrL7H5XNNGbMkLH9fbpn8U5cyQwzws5F6JJJEbwOPP3zVVX1tNDCCR85KQO0z/79CNphzoMeRX6PAqiBPazOvl+H/OYvL/CRa48UozbyN+Ul5+X1jXIigl8cfayp3YMNZ3yiH/RmJV+ZYXv2jdsbH2cKpFl2cOu/g1KLVXtfZm25QrknzjA9EoOvS4nZFa63h7nUlgOyA4dbYHwOMFGKHH71P8WvdN4oLw2fJcpsjiYVe7GqV4g7xFDk/Fv+wqd9I+zIvDcZs5/qyfB+6OTX0xYo+monXIymz2iRQjQszSszTDgs0fUn+B0v+hK4yaF9xsdgO5lW7vJNXB09MMeEned1AtS0XRjOLIzQFASWB+6+CDR0deofhscUah8lSd6thxSF2DClUedMyu67Qacs+6eZ5EDfYsZwz3Gfj/sngld8BMZJLiuonPwn+g==
- Organization: GeometryFactory
On Monday, August 13, 2018 7:08:32 PM CEST Tekel wrote:
> Hello, I've been trying to follow this official example
> <https://doc.cgal.org/4.13/Triangulation_2/index.html#Triangulation2Draw>
> but no luck.
>
> How to set flags at compile time is my first problem, I don't know if
> there'll be more after that.
>
> I'd like to see the triangulation with that interface because is so simple
> and pretty. My solution now is to plot using gnuplot but that envolves
> writing files which at large input could be slow...I'd appreciate some help
> to compile that example.
>
> Thank you for your time.
As said in the documentation, you need:
1. to define the preprocessor macro `CGAL_USE_BASIC_VIEWER`, using the
compilation flag `-DCGAL_USE_BASIC_VIEWER`, and,
2. to link with the library CGAL_Qt5.
With CMake, you can use the following in the CMakeLists.txt, once the
executable `draw_triangulation_2` is defined.
target_compile_definitions(draw_triangulation_2 PRIVATE
CGAL_USE_BASIC_VIEWER)
target_link_libraries(draw_triangulation_2 PRIVATE CGAL::CGAL_Qt5)
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] How to draw a Triangulation with Qt?, Tekel, 08/13/2018
- Re: [cgal-discuss] How to draw a Triangulation with Qt?, Laurent Rineau (CGAL/GeometryFactory), 08/21/2018
Archive powered by MHonArc 2.6.18.