1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +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) = function inCircumcircle(t, p, circles, _indices_hash) =
let( let(
c = hashmap_get(circles, t, hash = _indices_hash), c = hashmap_get(circles, t, hash = _indices_hash),
v = cc_center(c) - p, ct = cc_center(c),
rr = v[0] ^ 2 + v[1] ^ 2 rr = (ct[0] - p[0]) ^ 2 + (ct[1] - p[1]) ^ 2
) )
rr <= cc_rr(c); rr <= cc_rr(c);