1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 16:54:23 +02:00

fix wrong funcall

This commit is contained in:
Justin Lin
2019-06-22 14:25:31 +08:00
parent a5d2c24ea1
commit d9f065a734
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ function __m_scaling_to_3_elems_scaling_vect(s) =
function _to_scaling_vect(s) = is_num(s) ? [s, s, s] : __m_scaling_to_3_elems_scaling_vect(s);
function __m_scaling(s) =
let(v = __m_scaling_to_scaling_vect(s))
let(v = __m_scaling_to_3_elems_scaling_vect(s))
[
[v[0], 0, 0, 0],
[0, v[1], 0, 0],

View File

@@ -8,6 +8,7 @@
*
**/
include <__private__/__m_scaling.scad>;
include <__private__/__reverse.scad>;
function path_scaling_sections(shape_pts, edge_path) =
@@ -17,7 +18,7 @@ function path_scaling_sections(shape_pts, edge_path) =
scaling_matrice = [
for(p = edge_path)
let(s = norm([p[0], p[1], 0]) / base_leng)
m_scaling([s, s, 1])
__m_scaling([s, s, 1])
],
leng_edge_path = len(edge_path)
)