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

Function getContour

stackgl_modules/index.js:39260–39269  ·  view source on GitHub ↗
(pixels, doSimplify)

Source from the content-addressed store, hash-verified

39258}
39259
39260function getContour(pixels, doSimplify) {
39261 var contour = surfaceNets(pixels, 128)
39262 if(doSimplify) {
39263 return simplify(contour.cells, contour.positions, 0.25)
39264 }
39265 return {
39266 edges: contour.cells,
39267 positions: contour.positions
39268 }
39269}
39270
39271function processPixelsImpl(pixels, options, size, simplify) {
39272 //Extract contour

Callers 2

index.jsFile · 0.85
processPixelsImplFunction · 0.85

Calls 1

surfaceNetsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…