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

Function tryDrawTri

src/traces/isosurface/convert.js:417–429  ·  view source on GitHub ↗
(style, xyzv, abc)

Source from the content-addressed store, hash-verified

415 }
416
417 var tryDrawTri = function(style, xyzv, abc) {
418 if( // we check here if the points are in `real` iso-min/max range
419 almostInFinalRange(xyzv[0][3]) &&
420 almostInFinalRange(xyzv[1][3]) &&
421 almostInFinalRange(xyzv[2][3])
422 ) {
423 drawTri(style, xyzv, abc);
424 return true;
425 } else if(nPass < MAX_PASS) {
426 return tryCreateTri(style, xyzv, abc, vMin, vMax, ++nPass); // i.e. second pass using actual vMin vMax bounds
427 }
428 return false;
429 };
430
431 if(ok[0] && ok[1] && ok[2]) {
432 return tryDrawTri(style, xyzv, abc) || result;

Callers 1

tryCreateTriFunction · 0.85

Calls 3

almostInFinalRangeFunction · 0.85
drawTriFunction · 0.85
tryCreateTriFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…