Skip to content

Commit c8063dd

Browse files
committed
[graphics] displays a point if box.max_diam() == 0.
1 parent fedbdb0 commit c8063dd

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/core/graphics/tubex_VIBesFig.cpp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,21 @@ namespace tubex
121121
if(box.is_unbounded())
122122
return;
123123

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

128-
if(color != "")
129-
vibes::drawBox(box, color, params_this_fig);
130-
131127
else
132-
vibes::drawBox(box, params_this_fig);
128+
{
129+
vibes::Params params_this_fig(params);
130+
m_view_box |= box;
131+
params_this_fig["figure"] = name();
132+
133+
if(color != "")
134+
vibes::drawBox(box, color, params_this_fig);
135+
136+
else
137+
vibes::drawBox(box, params_this_fig);
138+
}
133139
}
134140

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

0 commit comments

Comments
 (0)