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

Function mesh1D

stackgl_modules/index.js:37774–37787  ·  view source on GitHub ↗
(array, level)

Source from the content-addressed store, hash-verified

37772
37773//1D case: Need to handle specially
37774function mesh1D(array, level) {
37775 var zc = zeroCrossings(array, level)
37776 var n = zc.length
37777 var npos = new Array(n)
37778 var ncel = new Array(n)
37779 for(var i=0; i<n; ++i) {
37780 npos[i] = [ zc[i] ]
37781 ncel[i] = [ i ]
37782 }
37783 return {
37784 positions: npos,
37785 cells: ncel
37786 }
37787}
37788
37789var CACHE = {}
37790

Callers 1

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