|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52023 - sandbox-branches/andreo/guigl/libs/guigl/example
From: andreytorba_at_[hidden]
Date: 2009-03-27 15:47:20
Author: andreo
Date: 2009-03-27 15:47:20 EDT (Fri, 27 Mar 2009)
New Revision: 52023
URL: http://svn.boost.org/trac/boost/changeset/52023
Log:
added points in polygon.cpp
Text files modified:
sandbox-branches/andreo/guigl/libs/guigl/example/polygon.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Modified: sandbox-branches/andreo/guigl/libs/guigl/example/polygon.cpp
==============================================================================
--- sandbox-branches/andreo/guigl/libs/guigl/example/polygon.cpp (original)
+++ sandbox-branches/andreo/guigl/libs/guigl/example/polygon.cpp 2009-03-27 15:47:20 EDT (Fri, 27 Mar 2009)
@@ -75,8 +75,6 @@
v.clear();
intersection(cb, poly, std::back_inserter(v));
- BOOST_FOREACH(Polygon& pg, v)
- correct(pg);
window::redraw(*this);
}
@@ -115,6 +113,7 @@
base_type::draw_prologue();
glEnable(GL_LINE_SMOOTH);
+ glEnable(GL_POINT_SMOOTH);
// hull
draw_polygon(hull, yellow(0.3), red(0.4));
@@ -126,9 +125,14 @@
gl::color(blue(0.2));
ggl::rect(cb);
+ gl::point_size(10);
// intersection
BOOST_FOREACH(polygon_2d const& pg, v)
+ {
draw_polygon(pg, red(0.4), black(0.8));
+ geometry::for_each_point(pg, ggl::drawer());
+ }
+
}
BOOST_GUIGL_WIDGET_DRAW_IMPL(my_widget);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk