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

Function addCube

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

Source from the content-addressed store, hash-verified

590 }
591
592 function addCube(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max) {
593 var result = false;
594
595 if(drawingSurface) {
596 if(styleIncludes(style, 'A')) {
597 result = tryCreateTetra(null, [p000, p001, p010, p100], min, max) || result;
598 }
599 if(styleIncludes(style, 'B')) {
600 result = tryCreateTetra(null, [p001, p010, p011, p111], min, max) || result;
601 }
602 if(styleIncludes(style, 'C')) {
603 result = tryCreateTetra(null, [p001, p100, p101, p111], min, max) || result;
604 }
605 if(styleIncludes(style, 'D')) {
606 result = tryCreateTetra(null, [p010, p100, p110, p111], min, max) || result;
607 }
608 if(styleIncludes(style, 'E')) {
609 result = tryCreateTetra(null, [p001, p010, p100, p111], min, max) || result;
610 }
611 }
612
613 if(drawingSpaceframe) {
614 result = tryCreateTetra(style, [p001, p010, p100, p111], min, max) || result;
615 }
616
617 return result;
618 }
619
620 function addRect(style, a, b, c, d, min, max, previousResult) {
621 return [

Callers 1

begin3dCellFunction · 0.85

Calls 2

styleIncludesFunction · 0.85
tryCreateTetraFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…