1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

use __lines_from

This commit is contained in:
Justin Lin
2019-06-02 21:02:20 +08:00
parent 571ddccf5c
commit 59e9f97fa7

View File

@@ -1,4 +1,4 @@
include <__private__/__edges_from.scad>;
include <__private__/__lines_from.scad>;
include <__private__/__in_line.scad>;
function _in_shape_in_line_equation(edge, pt) =
@@ -39,7 +39,7 @@ function _in_shape_sub(shapt_pts, leng, pt, cond, i, j) =
function in_shape(shapt_pts, pt, include_edge = false, epsilon = 0.0001) =
let(
leng = len(shapt_pts),
edges = __edges_from(points, true)
edges = __lines_from(points, true)
)
_in_shape_in_any_edges(edges, pt, epsilon) ? include_edge :
_in_shape_sub(shapt_pts, leng, pt, false, leng - 1, 0);