mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-24 09:33:26 +01:00
missing dependency
This commit is contained in:
parent
0218724b48
commit
957e5ab5d5
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user