Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] visualizing CGAL objects

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] visualizing CGAL objects


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] visualizing CGAL objects
  • Date: Thu, 25 Feb 2016 08:32:38 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:JIteYBNmWxhbrYmX/vcl6mtUPXoX/o7sNwtQ0KIMzox0KPn9rarrMEGX3/hxlliBBdydsKIbzbeH+Pm4BiQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTokb3jsMSLPE1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv50IbaKvdKsxSflUDS8tLnsuzMztrxjKCwWVtVUGVWBDuxxEGQXM91nUV53rs2Ouv+xxwiSTJov4RLouWByt4qBuRQPymSkOPCI+6nCRgct12vEI6Cm9rgByltaHKLqeM+BzK/vQ
  • Organization: GeometryFactory


Have a look at the demo of the chapter
http://doc.cgal.org/4.8/Manual/packages.html#PkgBoundingVolumesSummary

It visualizes min circle and min ellipse.

andreas


On 25/02/2016 06:57, tcscott wrote:
Dear All

Thanks for the feedback and clarification so far.

I am trying other examples in CGAL. I tried Min_circle_2

I would get an executible a.out from:

g++ -L/opt/local/lib -lcgal -I/opt/local/include/ -lgmp -lmpfr
-L/opt/local/lib/ -lboost_thread-mt min_circle_2.cpp


Output:

CGAL::Min_circle_2( |P| = 100, |S| = 2
P = {
PointC2(98, 0),
PointC2(-99, 0),
PointC2(94, 0),
PointC2(92, 0),
PointC2(90, 0),
PointC2(-89, 0),
PointC2(64, 0),
PointC2(-85, 0),

.
.
.

PointC2(80, 0),
PointC2(96, 0),
PointC2(24, 0),
PointC2(-83, 0),
PointC2(-73, 0),
}
S = {
PointC2(98, 0),
PointC2(-99, 0),
}
circle = CGAL::Optimisation_circle_2( PointC2(-0.5, 0), 9702.25)
)

===

I would get a similar result from Min_ellipse_2

Question is: how to visualize the results?

My earlier and very first result with Convex_Hull could be done in
gnuplot because the output were x-y pairs but these are CGAL data
structures.

I found mention of the Qt Graphics View Framework:

http://doc.cgal.org/Manual/3.4/doc_html/cgal_manual/GraphicsView/Chapter_main.html

but I need a concrete example.

If I need additional software, what do I need to install?

What is the simplest way to visualize these results?

best wishes

Tony




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/visualizing-CGAL-objects-tp4661624.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912 skype: andreas.fabri



Archive powered by MHonArc 2.6.18.

Top of Page