MCPcopy Create free account
hub / github.com/plotly/plotly.js / delaunayCells

Function delaunayCells

src/traces/mesh3d/convert.js:80–88  ·  view source on GitHub ↗
(delaunayaxis, positions)

Source from the content-addressed store, hash-verified

78}
79
80function delaunayCells(delaunayaxis, positions) {
81 var d = ['x', 'y', 'z'].indexOf(delaunayaxis);
82 var b = [];
83 var len = positions.length;
84 for(var i = 0; i < len; i++) {
85 b[i] = [positions[i][(d + 1) % 3], positions[i][(d + 2) % 3]];
86 }
87 return triangulate(b);
88}
89
90// Validate indices
91function hasValidIndices(list, numVertices) {

Callers 1

convert.jsFile · 0.85

Calls 1

triangulateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…