package sample.svg3d;

import static util.NetUtil.*;

public class Cutting8 {
	
	public static final double[] tab0 = {};
	public static final double[] tab1 = { 0, 0, 1, 0, 1-0.15/tan360(60), 0.15, 0.15/tan360(60), 0.15 };
	
	public static final double[][][] glueTabSpec8 = {
		{ tab0, tab1, tab0 },
		{ tab0, tab1, tab0 },
		{ tab0, tab1, tab0 },
		{ tab0, tab0, tab1 },
		{ tab0, tab0, tab1 },
		{ tab0, tab0, tab0 },
		{ tab0, tab0, tab0 },
		{ tab0, tab0, tab0 },		
	};
	
	public static void main(String[] args) {		
		setRegularPolyhedronNet(8);
		boolean test = false;
		if (test) {
			start(); 
			trimMark();
			stroke(bw1(0));
			strokeWeight(1);
			noFill();
			fillBackgroundPolyhedron(glueTabSpec8);
		} else {
//			setPageSize(297*900/254, 210*900/254);
			double scale = 900.0/254; // Inkscapeの仕様 (90dpi)
			start();
			// no trim mark
//			trimMark(scale, scale);
			stroke(bw1(0));
			strokeWeight(1);
			fill(bw1(0));
//			scale(900.0/254, 900.0/254);
			fillBackgroundPolyhedron(glueTabSpec8, scale, scale);
		}

		finish();                    /* 最後に必要 */
	}
}
