1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +02:00

supported 2d points

This commit is contained in:
Justin Lin
2017-05-24 13:15:17 +08:00
parent ef67883350
commit e46d504019

View File

@@ -12,6 +12,8 @@
* *
**/ **/
include <__private__/__to2d.scad>;
function _combi(n, k) = function _combi(n, k) =
let( let(
bi_coef = [ bi_coef = [
@@ -56,4 +58,5 @@ function bezier_curve(t_step, points) =
for(t = [0: t_step: 1]) for(t = [0: t_step: 1])
_bezier_curve_point(t, points) _bezier_curve_point(t, points)
], [_bezier_curve_point(1, points)]) ], [_bezier_curve_point(1, points)])
) pts; )
len(points[0]) == 3 ? pts : [for(pt = pts) __to2d(pt)];