1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 09:14:29 +02:00

discarded float points

This commit is contained in:
Justin Lin
2017-05-25 13:51:40 +08:00
parent fd09c0f13b
commit 02e69bd6ea

View File

@@ -26,8 +26,8 @@ module assertEqualPoint(expected, actual) {
function shift_to_int(pt, n) =
len(pt) == 2 ?
[round(pt[0] * n), round(pt[1] * n)] :
[round(pt[0] * n), round(pt[1] * n), round(pt[2] * n)];
[floor(pt[0] * n), floor(pt[1] * n)] :
[floor(pt[0] * n), floor(pt[1] * n), floor(pt[2] * n)];
shifted_expected = shift_to_int(
expected,