mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-04-20 06:02:05 +02:00
refactor deps
This commit is contained in:
parent
15c549c0c0
commit
62e8d2af84
@ -1,7 +1,7 @@
|
||||
function __in_line(line_pts, pt, epsilon = 0.0001) =
|
||||
let(
|
||||
pts = len(line_pts[0]) == 2 ? [for(p = line_pts) __to3d(p)] : line_pts,
|
||||
pt3d = len(pt) == 2 ? __to3d(pt) : pt,
|
||||
pts = len(line_pts[0]) == 2 ? [for(p = line_pts) [p[0], p[1], 0]] : line_pts,
|
||||
pt3d = len(pt) == 2 ? [pt[0], pt[1], 0] : pt,
|
||||
v1 = pts[0] - pt3d,
|
||||
v2 = pts[1] - pt3d
|
||||
)
|
||||
|
@ -8,8 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__in_line.scad>;
|
||||
use <__comm__/__in_line.scad>;
|
||||
|
||||
function in_polyline(line_pts, pt, epsilon = 0.0001) =
|
||||
let(
|
||||
|
@ -1,4 +1,4 @@
|
||||
include <in_polyline.scad>;
|
||||
use <in_polyline.scad>;
|
||||
|
||||
module test_in_polyline() {
|
||||
echo("==== test_in_polyline ====");
|
||||
|
Loading…
x
Reference in New Issue
Block a user