1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 19:54:29 +02:00

cal rr directly

This commit is contained in:
Justin Lin
2021-05-07 10:43:10 +08:00
parent a15f98dafb
commit 045db5889d

View File

@@ -180,8 +180,8 @@ function delaunayBadTriangles(d, p, _indices_hash) =
function inCircumcircle(t, p, circles, _indices_hash) =
let(
c = hashmap_get(circles, t, hash = _indices_hash),
v = cc_center(c) - p,
rr = v[0] ^ 2 + v[1] ^ 2
ct = cc_center(c),
rr = (ct[0] - p[0]) ^ 2 + (ct[1] - p[1]) ^ 2
)
rr <= cc_rr(c);