1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/test/test_crystal_ball.scad

21 lines
448 B
OpenSCAD
Raw Normal View History

2022-06-06 13:11:46 +08:00
use <unittest.scad>
include <crystal_ball.scad>
2017-06-02 10:34:17 +08:00
2020-01-27 10:18:36 +08:00
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);
}
2017-06-02 10:34:17 +08:00
2020-01-27 10:18:36 +08:00
module test_theta_phi() {
echo("==== test_crystal_ball_theta_phi ====");
crystal_ball(
radius = 6,
theta = [-30, 270],
phi = [30, 60]
);
}
2017-06-02 10:34:17 +08:00
2020-01-27 10:18:36 +08:00
test_theta_phi();
2017-06-02 10:34:17 +08:00