1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00
This commit is contained in:
Justin Lin
2019-05-26 21:06:55 +08:00
parent 1fcf8b113f
commit e20d104cc7

View File

@@ -8,12 +8,7 @@
*
**/
function _bijection_edges_from(pts) =
let(leng = len(pts))
concat(
[for(i = [0:leng - 2]) [pts[i], pts[i + 1]]],
[[pts[len(pts) - 1], pts[0]]]
);
include <__private__/__edges_from.scad>;
function _bijection_inward_edge_normal(edge) =
let(
@@ -65,7 +60,7 @@ function _bijection_offset__bijection__bijection__bijection_offset_edges_interse
function bijection_offset(pts, d) =
let(
es = _bijection_edges_from(pts),
es = __edges_from(pts),
offset_es = _bijection__bijection_offset_edges(es, d),
leng = len(offset_es),
last_p = _bijection__bijection__bijection_offset_edges_intersection(offset_es[leng - 1], offset_es[0])