mirror of https://github.com/CGAL/cgal
weight is the radius
This commit is contained in:
parent
31dcbec573
commit
1a7b49eca6
|
|
@ -93,12 +93,10 @@ ApolloniusGraphGraphicsItem<AG,K>::paint(QPainter *painter, const QStyleOptionGr
|
||||||
{
|
{
|
||||||
QRectF rect = option->exposedRect;
|
QRectF rect = option->exposedRect;
|
||||||
PainterOstream<K> pos(painter, rect);
|
PainterOstream<K> pos(painter, rect);
|
||||||
|
|
||||||
for(typename AG::Sites_iterator it = ag->sites_begin();
|
for(typename AG::Sites_iterator it = ag->sites_begin();
|
||||||
it != ag->sites_end(); it++ ) {
|
it != ag->sites_end(); it++ ) {
|
||||||
pos << typename K::Circle_2(it->point(), it->weight());
|
pos << typename K::Circle_2(it->point(), square( it->weight()));
|
||||||
}
|
}
|
||||||
std::cerr << "paint" << std::endl;
|
|
||||||
ag->draw_dual(pos);
|
ag->draw_dual(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue