1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00

use contains

This commit is contained in:
Justin Lin
2022-04-15 10:04:02 +08:00
parent 89a6cc2137
commit 3ee549e89e

View File

@@ -195,7 +195,7 @@ function _delaunayBoundaries(d, badTriangles, boundaries, t, vi, _indices_hash)
triangles = delaunay_triangles(d),
opTri = hashmap_get(triangles, t, hash = _indices_hash)[vi]
)
has(badTriangles, opTri) ?
contains(badTriangles, opTri) ?
let(
i = search([t], hashmap_get(triangles, opTri, hash = _indices_hash))[0],
nvi = (i + 1) % 3,