Skip to content

Commit

Permalink
[graphics] displays a point if box.max_diam() == 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Jun 4, 2020
1 parent fedbdb0 commit c8063dd
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/core/graphics/tubex_VIBesFig.cpp
Expand Up @@ -121,15 +121,21 @@ namespace tubex
if(box.is_unbounded())
return;

vibes::Params params_this_fig(params);
m_view_box |= box;
params_this_fig["figure"] = name();
if(box.max_diam() == 0.)
draw_point(Point(box), color, params);

if(color != "")
vibes::drawBox(box, color, params_this_fig);

else
vibes::drawBox(box, params_this_fig);
{
vibes::Params params_this_fig(params);
m_view_box |= box;
params_this_fig["figure"] = name();

if(color != "")
vibes::drawBox(box, color, params_this_fig);

else
vibes::drawBox(box, params_this_fig);
}
}

void VIBesFig::draw_line(const vector<vector<double> >& v_pts, const vibes::Params& params)
Expand Down

0 comments on commit c8063dd

Please sign in to comment.