(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max)
| 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 [ |
no test coverage detected
searching dependent graphs…