mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 06:19:00 +08:00
More minor fixes
This commit is contained in:
parent
f16aaeafba
commit
f43bb9eb75
@ -220,10 +220,11 @@ SLAPrint::write_svg(const std::string &outputfile) const
|
||||
for (size_t i = 0; i < this->layers.size(); ++i) {
|
||||
const Layer &layer = this->layers[i];
|
||||
fprintf(f,
|
||||
"\t<g id=\"layer%zu\" slic3r:z=\"%0.4f\" slic3r:slice-z=\"%0.4f\" slic3r:layer-height=\"%0.4f\">\n", i,
|
||||
"\t<g id=\"layer%zu\" slic3r:z=\"%0.4f\" slic3r:slice-z=\"%0.4f\" slic3r:layer-height=\"%0.4f\">\n",
|
||||
i,
|
||||
layer.print_z,
|
||||
layer.slice_z,
|
||||
layer.print_z - (i == 0 ? 0 : this->layers[i-1].print_z)
|
||||
layer.print_z - ((i == 0) ? 0. : this->layers[i-1].print_z)
|
||||
);
|
||||
|
||||
if (layer.solid) {
|
||||
|
@ -20,7 +20,7 @@ SVG::SVG(const char* filename)
|
||||
}
|
||||
|
||||
SVG::SVG(const char* filename, const BoundingBox &bbox)
|
||||
: arrows(false), fill("grey"), stroke("black"), filename(filename), origin(bbox.min)
|
||||
: arrows(false), fill("grey"), stroke("black"), origin(bbox.min), filename(filename)
|
||||
{
|
||||
this->f = fopen(filename, "w");
|
||||
float w = COORD(bbox.max.x - bbox.min.x);
|
||||
|
Loading…
x
Reference in New Issue
Block a user