package sample.svg3d;

import static util.Polyhedron.hexahedronNet;
import static util.SphericalUtil.*;

public class PrimTest {
	public static void main(String[] args) {
		start();                     /* 最初に必要 */

		strokeWeight(.05);
		stroke(hsb360(0, 100, 100)); /* 線の色 */
		fill(hsb360(180, 50, 100));  /* 塗りの色 */
		
//		setPolyhedronNet(tetrahedronNet.fitBounds(0, 0, WIDTH, HEIGHT));
		setPolyhedronNet(hexahedronNet.fitBounds(0, 0, centerX(), centerY()));
//		setPolyhedronNet(octahedronNet.fitBounds(0, 0, WIDTH, HEIGHT));
//		setPolyhedronNet(dodecahedronNet.fitBounds(0, 0, WIDTH, HEIGHT));
//		setPolyhedronNet(icosahedronNet.fitBounds(0, 0, WIDTH, HEIGHT));
		drawBackgroundPolyhedron();
		
		strokeWeight(1);
		lineSpherical(1, 0, 0, 0, 1, 0);
		circleSpherical(1, 0, 0, 5);
		stroke(hsb360(120, 100, 100)); /* 線の色 */
		lineSpherical(0, 1, 0, 0, 0, 1);
		circleSpherical(0, 1, 0, 5);
		stroke(hsb360(240, 100, 100)); /* 線の色 */
		lineSpherical(0, 0, 1, 1, 0, 0);
		circleSpherical(0, 0, 1, 5);
		
		finish();                    /* 最後に必要 */
	}
}
