1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-21 06:31:51 +02:00

refactor deps

This commit is contained in:
Justin Lin 2020-01-27 15:57:28 +08:00
parent ceac65bc5b
commit 6ed6b39777
3 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,6 @@
use <__comm__/__frags.scad>;
use <__comm__/__pie_for_rounding.scad>;
function __tr__corner_t_leng_lt_zero(frags, t_sector_angle, l1, l2, h, round_r) =
let(t_height = tan(t_sector_angle) * l1 - round_r / sin(90 - t_sector_angle) - h / 2)
[

View File

@ -8,9 +8,7 @@
*
**/
include <__comm__/__frags.scad>;
include <__comm__/__pie_for_rounding.scad>;
include <__comm__/__half_trapezium.scad>;
use <__comm__/__half_trapezium.scad>;
module rounded_cylinder(radius, h, round_r, convexity = 2, center = false) {
r_corners = __half_trapezium(radius, h, round_r);

View File

@ -1,10 +1,9 @@
include <unittest.scad>;
use <unittest.scad>;
use <rounded_cylinder.scad>;
module test_rounded_cylinder() {
echo("==== test_rounded_cylinder ====");
include <rounded_cylinder.scad>;
h = 25;
module test_center_half_trapezium(center_pt, shape_pts) {