mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
fix wrong funcall
This commit is contained in:
@@ -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 _to_scaling_vect(s) = is_num(s) ? [s, s, s] : __m_scaling_to_3_elems_scaling_vect(s);
|
||||||
|
|
||||||
function __m_scaling(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],
|
[v[0], 0, 0, 0],
|
||||||
[0, v[1], 0, 0],
|
[0, v[1], 0, 0],
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
include <__private__/__m_scaling.scad>;
|
||||||
include <__private__/__reverse.scad>;
|
include <__private__/__reverse.scad>;
|
||||||
|
|
||||||
function path_scaling_sections(shape_pts, edge_path) =
|
function path_scaling_sections(shape_pts, edge_path) =
|
||||||
@@ -17,7 +18,7 @@ function path_scaling_sections(shape_pts, edge_path) =
|
|||||||
scaling_matrice = [
|
scaling_matrice = [
|
||||||
for(p = edge_path)
|
for(p = edge_path)
|
||||||
let(s = norm([p[0], p[1], 0]) / base_leng)
|
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)
|
leng_edge_path = len(edge_path)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user