mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 12:10:47 +02:00
cal rr directly
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user