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

Function surfaceNets

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

Source from the content-addressed store, hash-verified

37789var CACHE = {}
37790
37791function surfaceNets(array,level) {
37792 if(array.dimension <= 0) {
37793 return { positions: [], cells: [] }
37794 } else if(array.dimension === 1) {
37795 return mesh1D(array, level)
37796 }
37797 var typesig = array.order.join() + "-" + array.dtype
37798 var proc = CACHE[typesig]
37799 var level = (+level) || 0.0
37800 if(!proc) {
37801 proc = CACHE[typesig] = buildSurfaceNets(array.order, array.dtype)
37802 }
37803 return proc(array,level)
37804}
37805
37806/***/ }),
37807

Callers 2

index.jsFile · 0.85
getContourFunction · 0.85

Calls 3

mesh1DFunction · 0.85
buildSurfaceNetsFunction · 0.85
procFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…