Added a lot of debugging outputs (SVG) into SkeletalTrapezoidation.

This commit is contained in:
Lukáš Hejl 2022-08-10 16:25:15 +02:00
parent 4d19eb9ace
commit e838acdcd1
4 changed files with 186 additions and 25 deletions

View file

@ -287,9 +287,10 @@ void SVG::draw_text(const Point &pt, const char *text, const char *color, const
void SVG::draw_legend(const Point &pt, const char *text, const char *color, const coordf_t font_size)
{
fprintf(this->f,
R"(<circle cx="%f" cy="%f" r="10" fill="%s"/>)",
R"(<circle cx="%f" cy="%f" r="%f" fill="%s"/>)",
to_svg_x(float(pt.x() - origin.x())),
to_svg_y(float(pt.y() - origin.y())),
font_size,
color);
fprintf(this->f,
R"(<text x="%f" y="%f" font-family="sans-serif" font-size="%fpx" fill="%s">%s</text>)",