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