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

Function drawTetra

src/traces/isosurface/convert.js:338–347  ·  view source on GitHub ↗
(style, xyzv, abcd)

Source from the content-addressed store, hash-verified

336 }
337
338 function drawTetra(style, xyzv, abcd) {
339 var makeTri = function(i, j, k) {
340 drawTri(style, [xyzv[i], xyzv[j], xyzv[k]], [abcd[i], abcd[j], abcd[k]]);
341 };
342
343 makeTri(0, 1, 2);
344 makeTri(3, 0, 1);
345 makeTri(2, 3, 0);
346 makeTri(1, 2, 3);
347 }
348
349 function calcIntersection(pointOut, pointIn, min, max) {
350 var value = pointOut[3];

Callers 1

tryCreateTetraFunction · 0.85

Calls 1

makeTriFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…