mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-18 06:38:14 +01:00
use relative path
This commit is contained in:
parent
65cd5b9a93
commit
6695e793db
@ -1,5 +1,5 @@
|
||||
use <__comm__/__frags.scad>;
|
||||
use <__comm__/__pie_for_rounding.scad>;
|
||||
use <__frags.scad>;
|
||||
use <__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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <util/reverse.scad>;
|
||||
use <../util/reverse.scad>;
|
||||
|
||||
function __polytransversals(transversals) =
|
||||
let(
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <__comm__/__half_trapezium.scad>;
|
||||
use <__half_trapezium.scad>;
|
||||
|
||||
function __trapezium(length, h, round_r) =
|
||||
let(
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <__comm__/__to2d.scad>;
|
||||
use <../__comm__/__to2d.scad>;
|
||||
|
||||
function _combi(n, k) =
|
||||
let(
|
||||
|
@ -1,7 +1,7 @@
|
||||
use <__comm__/__to3d.scad>;
|
||||
use <__comm__/__to2d.scad>;
|
||||
use <__comm__/__angy_angz.scad>;
|
||||
use <bezier_curve.scad>;
|
||||
use <../__comm__/__to3d.scad>;
|
||||
use <../__comm__/__to2d.scad>;
|
||||
use <../__comm__/__angy_angz.scad>;
|
||||
use <../bezier_curve.scad>;
|
||||
|
||||
function _corner_ctrl_pts(round_d, p1, p2, p3) =
|
||||
let(
|
||||
|
@ -1,5 +1,5 @@
|
||||
use <__comm__/__lines_from.scad>;
|
||||
use <__comm__/__line_intersection.scad>;
|
||||
use <../__comm__/__lines_from.scad>;
|
||||
use <../__comm__/__line_intersection.scad>;
|
||||
|
||||
function _bijection_inward_edge_normal(edge) =
|
||||
let(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use <__comm__/__fast_fibonacci.scad>;
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <shape_circle.scad>;
|
||||
use <../__comm__/__fast_fibonacci.scad>;
|
||||
use <../ptf/ptf_rotate.scad>;
|
||||
use <../shape_circle.scad>;
|
||||
|
||||
function _fast_fibonacci_sub(nth) =
|
||||
let(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use <__comm__/__to2d.scad>;
|
||||
use <__comm__/__to3d.scad>;
|
||||
use <__comm__/__to_ang_vect.scad>;
|
||||
use <../__comm__/__to2d.scad>;
|
||||
use <../__comm__/__to3d.scad>;
|
||||
use <../__comm__/__to_ang_vect.scad>;
|
||||
|
||||
function _q_rotate_p_3d(p, a, v) =
|
||||
let(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use <__comm__/__to2d.scad>;
|
||||
use <__comm__/__to3d.scad>;
|
||||
use <__comm__/__to_ang_vect.scad>;
|
||||
use <../__comm__/__to2d.scad>;
|
||||
use <../__comm__/__to3d.scad>;
|
||||
use <../__comm__/__to_ang_vect.scad>;
|
||||
|
||||
function _q_rotate_p_3d(p, a, v) =
|
||||
let(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <shape_pie.scad>;
|
||||
use <bezier_curve.scad>;
|
||||
use <../ptf/ptf_rotate.scad>;
|
||||
use <../shape_pie.scad>;
|
||||
use <../bezier_curve.scad>;
|
||||
|
||||
function _glued2circles_pie_curve(radius, centre_dist, tangent_angle) =
|
||||
let(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use <__comm__/__to3d.scad>;
|
||||
use <__comm__/__polytransversals.scad>;
|
||||
use <rotate_p.scad>;
|
||||
use <../__comm__/__to3d.scad>;
|
||||
use <../__comm__/__polytransversals.scad>;
|
||||
use <../rotate_p.scad>;
|
||||
|
||||
function _shape_path_extend_az(p1, p2) =
|
||||
let(
|
||||
|
@ -1,5 +1,5 @@
|
||||
use <__comm__/__ra_to_xy.scad>;
|
||||
use <__comm__/__to_degree.scad>;
|
||||
use <../__comm__/__ra_to_xy.scad>;
|
||||
use <../__comm__/__to_degree.scad>;
|
||||
|
||||
function _superformula_r(angle, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) =
|
||||
pow(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use <__comm__/__line_intersection.scad>;
|
||||
use <__comm__/__in_line.scad>;
|
||||
use <__comm__/__lines_from.scad>;
|
||||
use <../__comm__/__line_intersection.scad>;
|
||||
use <../__comm__/__in_line.scad>;
|
||||
use <../__comm__/__lines_from.scad>;
|
||||
|
||||
function _trim_shape_any_intersection_sub(lines, line, lines_leng, i, epsilon) =
|
||||
let(
|
||||
|
@ -1,5 +1,5 @@
|
||||
use <util/slice.scad>;
|
||||
use <util/sum.scad>;
|
||||
use <../../util/slice.scad>;
|
||||
use <../../util/sum.scad>;
|
||||
|
||||
function _m_determinant_sub(matrix, leng, fc) =
|
||||
let(
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <__comm__/__to_ang_vect.scad>;
|
||||
use <../../__comm__/__to_ang_vect.scad>;
|
||||
|
||||
function __m_rotation_q_rotation(a, v) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <matrix/_impl/_m_cumulate_impl.scad>;
|
||||
use <_impl/_m_cumulate_impl.scad>;
|
||||
|
||||
function m_cumulate(matrice) = _m_cumulate_impl(matrice);
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
use <matrix/_impl/_m_determinant_impl.scad>;
|
||||
use <_impl/_m_determinant_impl.scad>;
|
||||
|
||||
function m_determinant(matrix) = _m_determinant(matrix);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <matrix/_impl/_m_rotation_impl.scad>;
|
||||
use <_impl/_m_rotation_impl.scad>;
|
||||
|
||||
function m_rotation(a, v) = _m_rotation_impl(a, v);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <matrix/_impl/_m_scaling_impl.scad>;
|
||||
use <_impl/_m_scaling_impl.scad>;
|
||||
|
||||
function m_scaling(s) = _m_scaling_impl(s);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <matrix/_impl/_m_shearing_impl.scad>;
|
||||
use <_impl/_m_shearing_impl.scad>;
|
||||
|
||||
function m_shearing(sx = [0, 0], sy = [0, 0], sz = [0, 0]) = _m_shearing_impl(sx, sy, sz);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <matrix/_impl/_m_translation_impl.scad>;
|
||||
use <_impl/_m_translation_impl.scad>;
|
||||
|
||||
function m_translation(v) = _m_translation_impl(v);
|
@ -1,4 +1,4 @@
|
||||
use <util/sort.scad>;
|
||||
use <../../util/sort.scad>;
|
||||
|
||||
function _sum_impl(lt, leng, i = 0) =
|
||||
i >= leng - 1 ? lt[i] : (lt[i] + _sum_impl(lt, leng, i + 1));
|
||||
|
@ -1,5 +1,5 @@
|
||||
use <noise/_impl/_nz_worley_comm.scad>;
|
||||
use <util/sort.scad>;
|
||||
use <_nz_worley_comm.scad>;
|
||||
use <../../util/sort.scad>;
|
||||
|
||||
function _neighbors(fcord, seed, grid_w) = [
|
||||
for(y = [-1:1])
|
||||
|
@ -1,5 +1,5 @@
|
||||
use <noise/_impl/_nz_worley_comm.scad>;
|
||||
use <util/sort.scad>;
|
||||
use <_nz_worley_comm.scad>;
|
||||
use <../../util/sort.scad>;
|
||||
|
||||
function _neighbors(fcord, seed, grid_w) = [
|
||||
for(z = [-1:1])
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <noise/_impl/_pnoise_comm.scad>;
|
||||
use <_pnoise_comm.scad>;
|
||||
|
||||
function _pnoise1_grad1(hashvalue, x) = (hashvalue % 2 == 0) ? x : -x;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <noise/_impl/_pnoise_comm.scad>;
|
||||
use <_pnoise_comm.scad>;
|
||||
|
||||
function _pnoise2_grad2(hashvalue, x, y) =
|
||||
let(case = hashvalue % 8)
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <noise/_impl/_pnoise_comm.scad>;
|
||||
use <_pnoise_comm.scad>;
|
||||
|
||||
function _pnoise3_grad3(hashvalue, x, y, z) =
|
||||
let(case = hashvalue % 16)
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <noise/_impl/_nz_cell_impl.scad>;
|
||||
use <_impl/_nz_cell_impl.scad>;
|
||||
|
||||
function nz_cell(points, p, dist = "euclidean") =
|
||||
dist == "border" ? _nz_cell_border(points, p) :
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <noise/_impl/_pnoise1_impl.scad>;
|
||||
use <_impl/_pnoise1_impl.scad>;
|
||||
|
||||
function nz_perlin1(x, seed) = _pnoise1_impl(x, seed % 256);
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_pnoise1_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_pnoise1_impl.scad>;
|
||||
|
||||
function nz_perlin1s(xs, seed) =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_pnoise2_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_pnoise2_impl.scad>;
|
||||
|
||||
function nz_perlin2(x, y, seed) = _pnoise2(x, y, seed % 256);
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_pnoise2_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_pnoise2_impl.scad>;
|
||||
|
||||
function nz_perlin2s(points, seed) =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_pnoise3_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_pnoise3_impl.scad>;
|
||||
|
||||
function nz_perlin3(x, y, z, seed) = _pnoise3(x, y, z, seed % 256);
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_pnoise3_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_pnoise3_impl.scad>;
|
||||
|
||||
function nz_perlin3s(points, seed) =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_nz_worley2_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_nz_worley2_impl.scad>;
|
||||
|
||||
function nz_worley2(x, y, seed, grid_w = 10, dist = "euclidean") =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_nz_worley2_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_nz_worley2_impl.scad>;
|
||||
|
||||
function nz_worley2s(points, seed, grid_w = 10, dist = "euclidean") =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_nz_worley3_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_nz_worley3_impl.scad>;
|
||||
|
||||
function nz_worley3(x, y, z, seed, tile_w = 10, dist = "euclidean") =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/rand.scad>;
|
||||
use <noise/_impl/_nz_worley3_impl.scad>;
|
||||
use <../util/rand.scad>;
|
||||
use <_impl/_nz_worley3_impl.scad>;
|
||||
|
||||
function nz_worley3s(points, seed, tile_w = 10, dist = "euclidean") =
|
||||
let(sd = is_undef(seed) ? floor(rand(0, 256)) : seed % 256)
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
use <__comm__/__to3d.scad>;
|
||||
use <__comm__/__to2d.scad>;
|
||||
use <../../__comm__/__to3d.scad>;
|
||||
use <../../__comm__/__to2d.scad>;
|
||||
|
||||
function _px_line_zsgn(a) = a == 0 ? a : a / abs(a);
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <pixel/px_from.scad>;
|
||||
use <px_from.scad>;
|
||||
|
||||
function px_ascii(char, center = false, invert = false) =
|
||||
let(code = ord(char))
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <pixel/_impl/_px_circle_impl.scad>;
|
||||
use <util/sort.scad>;
|
||||
use <util/dedup.scad>;
|
||||
use <_impl/_px_circle_impl.scad>;
|
||||
use <../util/sort.scad>;
|
||||
use <../util/dedup.scad>;
|
||||
|
||||
function px_circle(radius, filled = false) =
|
||||
let(all = _px_circle_impl(radius, filled))
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <pixel/_impl/_px_cylinder_impl.scad>;
|
||||
use <util/sort.scad>;
|
||||
use <util/dedup.scad>;
|
||||
use <_impl/_px_cylinder_impl.scad>;
|
||||
use <../util/sort.scad>;
|
||||
use <../util/dedup.scad>;
|
||||
|
||||
function px_cylinder(r, h, filled = false, thickness = 1) =
|
||||
let(all = _px_cylinder_impl(r, h, filled, thickness))
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <pixel/_impl/_px_from_impl.scad>;
|
||||
use <_impl/_px_from_impl.scad>;
|
||||
|
||||
function px_from(binaries, center = false, invert = false) = _px_from_impl(binaries, center, invert);
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <pixel/_impl/_px_gray_impl.scad>;
|
||||
use <_impl/_px_gray_impl.scad>;
|
||||
|
||||
function px_gray(levels, center = false, invert = false, normalize = false) =
|
||||
_px_gray_impl(levels, center, invert, normalize);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <pixel/_impl/_px_line_impl.scad>;
|
||||
use <_impl/_px_line_impl.scad>;
|
||||
|
||||
function px_line(p1, p2) = _px_line_impl(p1, p2);
|
@ -1,7 +1,7 @@
|
||||
use <in_shape.scad>;
|
||||
use <util/sort.scad>;
|
||||
use <util/dedup.scad>;
|
||||
use <pixel/px_polyline.scad>;
|
||||
use <../in_shape.scad>;
|
||||
use <../util/sort.scad>;
|
||||
use <../util/dedup.scad>;
|
||||
use <px_polyline.scad>;
|
||||
|
||||
function px_polygon(points, filled = false) =
|
||||
let(contour = px_polyline(concat(points, [points[0]])))
|
||||
|
@ -8,12 +8,12 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <__comm__/__to3d.scad>;
|
||||
use <__comm__/__to2d.scad>;
|
||||
use <__comm__/__lines_from.scad>;
|
||||
use <pixel/px_line.scad>;
|
||||
use <util/sort.scad>;
|
||||
use <util/dedup.scad>;
|
||||
use <../__comm__/__to3d.scad>;
|
||||
use <../__comm__/__to2d.scad>;
|
||||
use <../__comm__/__lines_from.scad>;
|
||||
use <../util/sort.scad>;
|
||||
use <../util/dedup.scad>;
|
||||
use <px_line.scad>;
|
||||
|
||||
function px_polyline(points) =
|
||||
let(
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <ptf/ptf_y_twist.scad>;
|
||||
use <ptf_rotate.scad>;
|
||||
use <ptf_y_twist.scad>;
|
||||
|
||||
function ptf_ring(size, point, radius, angle = 360, twist = 0) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <ptf_rotate.scad>;
|
||||
|
||||
function ptf_sphere(size, point, radius, angle = [180, 360]) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <ptf_rotate.scad>;
|
||||
|
||||
function ptf_torus(size, point, radius, angle = [360, 360], twist = 0) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <ptf_rotate.scad>;
|
||||
|
||||
function ptf_x_twist(size, point, angle) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
use <ptf_rotate.scad>;
|
||||
|
||||
function ptf_y_twist(size, point, angle) =
|
||||
let(
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <surface/_impl/_sf_square_surfaces.scad>;
|
||||
use <surface/sf_solidify.scad>;
|
||||
use <ptf/ptf_bend.scad>;
|
||||
use <_impl/_sf_square_surfaces.scad>;
|
||||
use <sf_solidify.scad>;
|
||||
use <../ptf/ptf_bend.scad>;
|
||||
|
||||
module sf_bend(levels, radius, thickness, depth, angle = 180, invert = false) {
|
||||
dp = is_undef(depth) ? thickness / 2 : depth;
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <surface/_impl/_sf_square_surfaces.scad>;
|
||||
use <surface/sf_solidify.scad>;
|
||||
use <ptf/ptf_ring.scad>;
|
||||
use <_impl/_sf_square_surfaces.scad>;
|
||||
use <sf_solidify.scad>;
|
||||
use <../ptf/ptf_ring.scad>;
|
||||
|
||||
module sf_ring(levels, radius, thickness, depth, angle = 360, twist = 0, invert = false) {
|
||||
dp = is_undef(depth) ? thickness / 2 : depth;
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/reverse.scad>;
|
||||
use <util/flat.scad>;
|
||||
use <../util/reverse.scad>;
|
||||
use <../util/flat.scad>;
|
||||
|
||||
module sf_solidify(surface1, surface2, slicing = "SLASH") {
|
||||
rows = len(surface1);
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <surface/_impl/_sf_square_surfaces.scad>;
|
||||
use <surface/sf_solidify.scad>;
|
||||
use <ptf/ptf_sphere.scad>;
|
||||
use <_impl/_sf_square_surfaces.scad>;
|
||||
use <sf_solidify.scad>;
|
||||
use <../ptf/ptf_sphere.scad>;
|
||||
|
||||
module sf_sphere(levels, radius, thickness, depth, angle = [180, 360], invert = false) {
|
||||
dp = is_undef(depth) ? thickness / 2 : depth;
|
||||
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <ptf/ptf_x_twist.scad>;
|
||||
use <ptf/ptf_y_twist.scad>;
|
||||
use <surface/_impl/_sf_square_surfaces.scad>;
|
||||
use <surface/sf_solidify.scad>;
|
||||
use <../ptf/ptf_x_twist.scad>;
|
||||
use <../ptf/ptf_y_twist.scad>;
|
||||
use <_impl/_sf_square_surfaces.scad>;
|
||||
use <sf_solidify.scad>;
|
||||
|
||||
module sf_square(levels, thickness, depth, x_twist = 0, y_twist = 0, invert = false) {
|
||||
size = [len(levels[0]), len(levels)];
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <surface/_impl/_sf_square_surfaces.scad>;
|
||||
use <surface/sf_solidify.scad>;
|
||||
use <ptf/ptf_torus.scad>;
|
||||
use <_impl/_sf_square_surfaces.scad>;
|
||||
use <sf_solidify.scad>;
|
||||
use <../ptf/ptf_torus.scad>;
|
||||
|
||||
module sf_torus(levels, radius, thickness, depth, angle = [360, 360], twist = 0, invert = false) {
|
||||
dp = is_undef(depth) ? thickness / 2 : depth;
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <turtle/_impl/_t2d_impl.scad>;
|
||||
use <_impl/_t2d_impl.scad>;
|
||||
|
||||
function t2d(t, cmd, point, angle, leng) = _t2d_impl(t, cmd, point, angle, leng);
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <turtle/_impl/_t3d_impl.scad>;
|
||||
use <_impl/_t3d_impl.scad>;
|
||||
|
||||
function t3d(t, cmd, point, unit_vectors, leng, angle) =
|
||||
_t3d_impl(t, cmd, point, unit_vectors, leng, angle);
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <turtle/_impl/_turtle2d_impl.scad>;
|
||||
use <_impl/_turtle2d_impl.scad>;
|
||||
|
||||
function turtle2d(cmd, arg1, arg2, arg3) =
|
||||
_turtle2d_impl(cmd, arg1, arg2, arg3);
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <turtle/_impl/_turtle3d_impl.scad>;
|
||||
use <_impl/_turtle3d_impl.scad>;
|
||||
|
||||
function turtle3d(cmd, arg1, arg2) = _turtle3d_impl(cmd, arg1, arg2);
|
@ -1,4 +1,4 @@
|
||||
use <util/_impl/_vt_default_comparator.scad>;
|
||||
use <_vt_default_comparator.scad>;
|
||||
|
||||
function _binary_search_by(sorted, elem, low, upper, i) =
|
||||
low > upper ? -1 :
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <util/has.scad>;
|
||||
use <../has.scad>;
|
||||
|
||||
function _dedup_sorted(lt, leng) =
|
||||
leng == 0 ? lt :
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <__comm__/__fast_fibonacci.scad>;
|
||||
use <../../__comm__/__fast_fibonacci.scad>;
|
||||
|
||||
function _fibonacci_sequence(seq, n, i = 2) =
|
||||
i > n ? seq :
|
||||
|
@ -1,5 +1,5 @@
|
||||
use <util/sub_str.scad>;
|
||||
use <util/split_str.scad>;
|
||||
use <../sub_str.scad>;
|
||||
use <../split_str.scad>;
|
||||
|
||||
function _str_to_int(t) = ord(t) - 48;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <util/_impl/_vt_default_comparator.scad>;
|
||||
use <_vt_default_comparator.scad>;
|
||||
|
||||
function _vt_sort(lt) =
|
||||
let(leng = len(lt))
|
||||
|
@ -1,4 +1,4 @@
|
||||
use <util/sub_str.scad>;
|
||||
use <../sub_str.scad>;
|
||||
|
||||
function _split_t_by(idxs, t) =
|
||||
let(leng = len(idxs))
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_bsearch_impl.scad>;
|
||||
use <_impl/_bsearch_impl.scad>;
|
||||
|
||||
function bsearch(sorted, elem, by = "idx", idx = 0) =
|
||||
by == "vt" ? _bsearch_vt(sorted, elem, 0, len(sorted) - 1) : // for example, `sorted` is by zyx
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_dedup_impl.scad>;
|
||||
use <_impl/_dedup_impl.scad>;
|
||||
|
||||
function dedup(lt, sorted = false) =
|
||||
sorted ? _dedup_sorted(lt, len(lt)) :
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_fibseq_impl.scad>;
|
||||
use <_impl/_fibseq_impl.scad>;
|
||||
|
||||
function fibseq(from, to) = _fibseq_impl(from, to);
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/bsearch.scad>;
|
||||
use <bsearch.scad>;
|
||||
|
||||
function has(lt, elem, sorted = false) =
|
||||
sorted ? bsearch(lt, elem, by = "vt") != -1 :
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_parse_number_impl.scad>;
|
||||
use <_impl/_parse_number_impl.scad>;
|
||||
|
||||
function parse_number(t) = _parse_number_impl(t);
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_sort_impl.scad>;
|
||||
use <_impl/_sort_impl.scad>;
|
||||
|
||||
function sort(lt, by = "idx", idx = 0) =
|
||||
by == "vt" ? _vt_sort(lt) : // for example, sort by zyx for a list of points
|
||||
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_split_str_impl.scad>;
|
||||
use <_impl/_split_str_impl.scad>;
|
||||
|
||||
function split_str(t, delimiter) = _split_str_impl(t, delimiter);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <util/_impl/_sub_str_impl.scad>;
|
||||
use <_impl/_sub_str_impl.scad>;
|
||||
|
||||
function sub_str(t, begin, end) = _sub_str_impl(t, begin, end);
|
@ -1,3 +1,3 @@
|
||||
use <util/_impl/_sum_impl.scad>;
|
||||
use <_impl/_sum_impl.scad>;
|
||||
|
||||
function sum(lt) = _sum_impl(lt, len(lt));
|
Loading…
x
Reference in New Issue
Block a user