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

Function begin3dCell

src/traces/isosurface/convert.js:680–691  ·  view source on GitHub ↗
(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max, isEven)

Source from the content-addressed store, hash-verified

678 }
679
680 function begin3dCell(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max, isEven) {
681 // used to create spaceframe and/or iso-surfaces
682
683 var cellStyle = style;
684 if(isEven) {
685 if(drawingSurface && style === 'even') cellStyle = null;
686 return addCube(cellStyle, p000, p001, p010, p011, p100, p101, p110, p111, min, max);
687 } else {
688 if(drawingSurface && style === 'odd') cellStyle = null;
689 return addCube(cellStyle, p111, p110, p101, p100, p011, p010, p001, p000, min, max);
690 }
691 }
692
693 function draw2dX(style, items, min, max, previousResult) {
694 var result = [];

Callers 1

draw3dFunction · 0.85

Calls 1

addCubeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…