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

Function findVertexId

src/traces/isosurface/convert.js:183–197  ·  view source on GitHub ↗
(x, y, z)

Source from the content-addressed store, hash-verified

181 var allVs;
182
183 function findVertexId(x, y, z) {
184 // could be used to find the vertex id of previously generated vertex within the group
185
186 var len = allVs.length;
187 for(var f = beginVertextLength; f < len; f++) {
188 if(
189 x === allXs[f] &&
190 y === allYs[f] &&
191 z === allZs[f]
192 ) {
193 return f;
194 }
195 }
196 return -1;
197 }
198
199 function beginGroup() {
200 beginVertextLength = numVertices;

Callers 1

drawTriFunction · 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…