mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 15:20:44 +08:00
New attribute slic3r:area in SVG export
This commit is contained in:
parent
1ecf1c805f
commit
f49458506f
@ -68,8 +68,8 @@ SVGExport::writeSVG(const std::string &outputfile)
|
|||||||
d << "z";
|
d << "z";
|
||||||
pd += d.str() + " ";
|
pd += d.str() + " ";
|
||||||
}
|
}
|
||||||
fprintf(f,"\t\t<path d=\"%s\" style=\"fill: %s; stroke: %s; stroke-width: %s; fill-type: evenodd\" />\n",
|
fprintf(f,"\t\t<path d=\"%s\" style=\"fill: %s; stroke: %s; stroke-width: %s; fill-type: evenodd\" slic3r:area=\"%0.4f\" />\n",
|
||||||
pd.c_str(),"white","black","0"
|
pd.c_str(), "white", "black", "0", unscale(unscale(it->area()))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
fprintf(f,"\t</g>\n");
|
fprintf(f,"\t</g>\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user