mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
refactor: p
This commit is contained in:
parent
fd18bdd959
commit
1f0513b7ff
@ -1,7 +1,8 @@
|
||||
use <../util/sorted.scad>;
|
||||
use <../matrix/m_replace.scad>;
|
||||
|
||||
function normal(pts, f) = cross(pts[f[1]] - pts[f[0]], pts[f[2]] - pts[f[0]]);
|
||||
function normal(pts, f) =
|
||||
let(p = pts[f[0]]) cross(pts[f[1]] - p, pts[f[2]] - p);
|
||||
|
||||
function _fst_v1(pts, leng, i) =
|
||||
i == leng || (pts[i] - pts[0]) != [0, 0, 0] ? i : _fst_v1(pts, leng, i + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user