1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-20 06:02:05 +02:00

refactor deps

This commit is contained in:
Justin Lin 2020-01-27 15:06:30 +08:00
parent 15c549c0c0
commit 62e8d2af84
3 changed files with 4 additions and 5 deletions

View File

@ -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
)

View File

@ -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(

View File

@ -1,4 +1,4 @@
include <in_polyline.scad>;
use <in_polyline.scad>;
module test_in_polyline() {
echo("==== test_in_polyline ====");