1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00
This commit is contained in:
Justin Lin
2019-05-29 09:20:13 +08:00
parent 429abba8ae
commit 6babff457e
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
function __edges_from(pts, closed = false) =
function __lines_from(pts, closed = false) =
let(leng = len(pts))
concat(
[for(i = [0:leng - 2]) [pts[i], pts[i + 1]]],

View File

@@ -8,7 +8,7 @@
*
**/
include <__private__/__edges_from.scad>;
include <__private__/__lines_from.scad>;
include <__private__/__line_intersection.scad>;
function _bijection_inward_edge_normal(edge) =
@@ -44,7 +44,7 @@ function _bijection__bijection_offset_edges(edges, d) =
function bijection_offset(pts, d) =
let(
es = __edges_from(pts, true),
es = __lines_from(pts, true),
offset_es = _bijection__bijection_offset_edges(es, d),
leng = len(offset_es),
last_p = __line_intersection(offset_es[leng - 1], offset_es[0])