1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 17:42:44 +01:00

we don't have to roate 90 degrees

This commit is contained in:
Justin Lin 2019-05-25 14:51:13 +08:00
parent 5615800a56
commit 9f2cb46427

View File

@ -13,7 +13,7 @@ module voronoi(points, spacing = 1, r = 0, delta = 0, chamfer = false, region_ty
if(pt != p) {
v = p - pt;
translate((pt + p) / 2 - normalize(v) * offset_leng)
rotate(90 + atan2(v[1], v[0]))
rotate(atan2(v[1], v[0]))
if(region_type == "square") {
square(region_size, center = true);
}