1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/test/test_crystal_ball.scad
2020-01-28 09:44:36 +08:00

21 lines
450 B
OpenSCAD

use <unittest.scad>;
include <crystal_ball.scad>;
module test_crystal_ball_pie(shape_pts) {
expected = [[0, 0], [5.1392, 2.9671], [4.8541, 3.5267], [3.5267, 4.8541], [2.9671, 5.1392]];
assertEqualPoints(expected, shape_pts);
}
module test_theta_phi() {
echo("==== test_crystal_ball_theta_phi ====");
crystal_ball(
radius = 6,
theta = [-30, 270],
phi = [30, 60]
);
}
test_theta_phi();