trianglesAdjacentToPoint method
Returns the indices of triangles adjacent to point i.
Implementation
List<int> trianglesAdjacentToPoint(int i) {
final result = <int>[];
// Find an edge starting from point i
for (int e = 0; e < triangleIndices.length; e++) {
if (triangleIndices[e] == i) {
result.add(e ~/ 3);
}
}
return result;
}