mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-10 16:54:23 +02:00
refactor: p
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
use <../util/sorted.scad>;
|
use <../util/sorted.scad>;
|
||||||
use <../matrix/m_replace.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) =
|
function _fst_v1(pts, leng, i) =
|
||||||
i == leng || (pts[i] - pts[0]) != [0, 0, 0] ? i : _fst_v1(pts, leng, i + 1);
|
i == leng || (pts[i] - pts[0]) != [0, 0, 0] ? i : _fst_v1(pts, leng, i + 1);
|
||||||
|
Reference in New Issue
Block a user