MCPcopy Index your code
hub / github.com/plotly/plotly.js / hasValidIndices

Function hasValidIndices

src/traces/mesh3d/convert.js:91–99  ·  view source on GitHub ↗
(list, numVertices)

Source from the content-addressed store, hash-verified

89
90// Validate indices
91function hasValidIndices(list, numVertices) {
92 var len = list.length;
93 for(var i = 0; i < len; i++) {
94 if(list[i] <= -0.5 || list[i] >= numVertices - 0.5) { // Note: the indices would be rounded -0.49 is valid.
95 return false;
96 }
97 }
98 return true;
99}
100
101proto.update = function(data) {
102 var scene = this.scene;

Callers 1

convert.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…