mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 03:34:42 +02:00
rename
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
function __edges_from(pts, closed = false) =
|
function __lines_from(pts, closed = false) =
|
||||||
let(leng = len(pts))
|
let(leng = len(pts))
|
||||||
concat(
|
concat(
|
||||||
[for(i = [0:leng - 2]) [pts[i], pts[i + 1]]],
|
[for(i = [0:leng - 2]) [pts[i], pts[i + 1]]],
|
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
include <__private__/__edges_from.scad>;
|
include <__private__/__lines_from.scad>;
|
||||||
include <__private__/__line_intersection.scad>;
|
include <__private__/__line_intersection.scad>;
|
||||||
|
|
||||||
function _bijection_inward_edge_normal(edge) =
|
function _bijection_inward_edge_normal(edge) =
|
||||||
@@ -44,7 +44,7 @@ function _bijection__bijection_offset_edges(edges, d) =
|
|||||||
|
|
||||||
function bijection_offset(pts, d) =
|
function bijection_offset(pts, d) =
|
||||||
let(
|
let(
|
||||||
es = __edges_from(pts, true),
|
es = __lines_from(pts, true),
|
||||||
offset_es = _bijection__bijection_offset_edges(es, d),
|
offset_es = _bijection__bijection_offset_edges(es, d),
|
||||||
leng = len(offset_es),
|
leng = len(offset_es),
|
||||||
last_p = __line_intersection(offset_es[leng - 1], offset_es[0])
|
last_p = __line_intersection(offset_es[leng - 1], offset_es[0])
|
||||||
|
Reference in New Issue
Block a user