| 678 | } |
| 679 | |
| 680 | function begin3dCell(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max, isEven) { |
| 681 | // used to create spaceframe and/or iso-surfaces |
| 682 | |
| 683 | var cellStyle = style; |
| 684 | if(isEven) { |
| 685 | if(drawingSurface && style === 'even') cellStyle = null; |
| 686 | return addCube(cellStyle, p000, p001, p010, p011, p100, p101, p110, p111, min, max); |
| 687 | } else { |
| 688 | if(drawingSurface && style === 'odd') cellStyle = null; |
| 689 | return addCube(cellStyle, p111, p110, p101, p100, p011, p010, p001, p000, min, max); |
| 690 | } |
| 691 | } |
| 692 | |
| 693 | function draw2dX(style, items, min, max, previousResult) { |
| 694 | var result = []; |