mirror of
https://github.com/raviriley/STL-to-OpenSCAD-Converter.git
synced 2024-11-22 06:33:12 +01:00
Rouding the bounds to 2 decimals
This commit is contained in:
parent
4555188849
commit
774e4f59f5
@ -118,8 +118,8 @@ function parseBinaryResult(stl) {
|
||||
}
|
||||
}
|
||||
|
||||
var boundsMin = `[${minx},${miny},${minz}]`;
|
||||
var boundsMax = `[${maxx},${maxy},${maxz}]`;
|
||||
var boundsMin = `[${minx.toFixed(2)},${miny.toFixed(2)},${minz.toFixed(2)}]`;
|
||||
var boundsMax = `[${maxx.toFixed(2)},${maxy.toFixed(2)},${maxz.toFixed(2)}]`;
|
||||
saveResult(vertices, triangles, boundsMin, boundsMax);
|
||||
}
|
||||
|
||||
@ -194,8 +194,8 @@ function parseAsciiResult(stl) {
|
||||
}
|
||||
}
|
||||
|
||||
var boundsMin = `[${minx},${miny},${minz}]`;
|
||||
var boundsMax = `[${maxx},${maxy},${maxz}]`;
|
||||
var boundsMin = `[${minx.toFixed(2)},${miny.toFixed(2)},${minz.toFixed(2)}]`;
|
||||
var boundsMax = `[${maxx.toFixed(2)},${maxy.toFixed(2)},${maxz.toFixed(2)}]`;
|
||||
saveResult(vertices, triangles, boundsMin, boundsMax);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user