mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 10:14:41 +02:00
missing dependency
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
include <__private__/__to3d.scad>;
|
||||||
include <__private__/__lines_from.scad>;
|
include <__private__/__lines_from.scad>;
|
||||||
include <__private__/__in_line.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) = _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) =
|
function _in_shape_interpolate_x(y, p1, p2) =
|
||||||
p1[1] == p2[1] ? p1[0] : (
|
p1[1] == p2[1] ? p1[0] : (
|
||||||
p1[0] + (p2[0] - p1[0]) * (y - p1[1]) / (p2[1] - p1[1])
|
p1[0] + (p2[0] - p1[0]) * (y - p1[1]) / (p2[1] - p1[1])
|
||||||
|
Reference in New Issue
Block a user