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

Function draw3d

src/traces/isosurface/convert.js:771–791  ·  view source on GitHub ↗
(style, min, max)

Source from the content-addressed store, hash-verified

769 }
770
771 function draw3d(style, min, max) {
772 for(var k = 1; k < depth; k++) {
773 for(var j = 1; j < height; j++) {
774 for(var i = 1; i < width; i++) {
775 begin3dCell(style,
776 getIndex(i - 1, j - 1, k - 1),
777 getIndex(i - 1, j - 1, k),
778 getIndex(i - 1, j, k - 1),
779 getIndex(i - 1, j, k),
780 getIndex(i, j - 1, k - 1),
781 getIndex(i, j - 1, k),
782 getIndex(i, j, k - 1),
783 getIndex(i, j, k),
784 min,
785 max,
786 (i + j + k) % 2
787 );
788 }
789 }
790 }
791 }
792
793 function drawSpaceframe(style, min, max) {
794 drawingSpaceframe = true;

Callers 2

drawSpaceframeFunction · 0.85
drawSurfaceFunction · 0.85

Calls 2

begin3dCellFunction · 0.85
getIndexFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…