From 957e5ab5d58a9e7483d524e5371ae80951be17d1 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 13 Jun 2019 08:31:54 +0800 Subject: [PATCH] missing dependency --- src/in_shape.scad | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/in_shape.scad b/src/in_shape.scad index e4b1795a..f279f18c 100644 --- a/src/in_shape.scad +++ b/src/in_shape.scad @@ -8,6 +8,7 @@ * **/ +include <__private__/__to3d.scad>; include <__private__/__lines_from.scad>; include <__private__/__in_line.scad>; @@ -28,7 +29,15 @@ function _in_shape_in_any_edges_sub(edges, leng, pt, i, epsilon) = ); function _in_shape_in_any_edges(edges, pt, epsilon) = _in_shape_in_any_edges_sub(edges, len(edges), pt, 0, epsilon); + +// function _in_shape_in_any_edges(edges, pt, epsilon) = +// let( +// leng = len(edges), +// last = [for(i = 0; i < leng && !__in_line(edges[i], pt, epsilon); i = i + 1) i][leng - 1] +// ) +// is_undef(last); + function _in_shape_interpolate_x(y, p1, p2) = p1[1] == p2[1] ? p1[0] : ( p1[0] + (p2[0] - p1[0]) * (y - p1[1]) / (p2[1] - p1[1])