mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-25 10:03:02 +01:00
refactor
This commit is contained in:
parent
1d812f8750
commit
5e3d1ced28
@ -1,5 +1,6 @@
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__lines_from.scad>;
|
||||
include <__private__/__in_line2d.scad>;
|
||||
include <__private__/__in_line.scad>;
|
||||
|
||||
function _in_shape_in_line_equation(edge, pt) =
|
||||
let(
|
||||
@ -14,7 +15,7 @@ function _in_shape_in_line_equation(edge, pt) =
|
||||
|
||||
function _in_shape_in_any_edges_sub(edges, leng, pt, i, epsilon) =
|
||||
leng == i ? false : (
|
||||
__in_line2d(edges[i], pt, epsilon) ? true : _in_shape_in_any_edges_sub(edges, leng, pt, i + 1, epsilon)
|
||||
__in_line(edges[i], pt, epsilon) ? true : _in_shape_in_any_edges_sub(edges, leng, pt, i + 1, epsilon)
|
||||
);
|
||||
|
||||
function _in_shape_in_any_edges(edges, pt, epsilon) = _in_shape_in_any_edges_sub(edges, len(edges), pt, 0, epsilon);
|
||||
|
Loading…
x
Reference in New Issue
Block a user