mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 03:50:27 +02:00
refactor deps
This commit is contained in:
@@ -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) =
|
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)
|
let(t_height = tan(t_sector_angle) * l1 - round_r / sin(90 - t_sector_angle) - h / 2)
|
||||||
[
|
[
|
||||||
|
@@ -8,9 +8,7 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
include <__comm__/__frags.scad>;
|
use <__comm__/__half_trapezium.scad>;
|
||||||
include <__comm__/__pie_for_rounding.scad>;
|
|
||||||
include <__comm__/__half_trapezium.scad>;
|
|
||||||
|
|
||||||
module rounded_cylinder(radius, h, round_r, convexity = 2, center = false) {
|
module rounded_cylinder(radius, h, round_r, convexity = 2, center = false) {
|
||||||
r_corners = __half_trapezium(radius, h, round_r);
|
r_corners = __half_trapezium(radius, h, round_r);
|
||||||
|
@@ -1,10 +1,9 @@
|
|||||||
include <unittest.scad>;
|
use <unittest.scad>;
|
||||||
|
use <rounded_cylinder.scad>;
|
||||||
|
|
||||||
module test_rounded_cylinder() {
|
module test_rounded_cylinder() {
|
||||||
echo("==== test_rounded_cylinder ====");
|
echo("==== test_rounded_cylinder ====");
|
||||||
|
|
||||||
include <rounded_cylinder.scad>;
|
|
||||||
|
|
||||||
h = 25;
|
h = 25;
|
||||||
|
|
||||||
module test_center_half_trapezium(center_pt, shape_pts) {
|
module test_center_half_trapezium(center_pt, shape_pts) {
|
||||||
|
Reference in New Issue
Block a user