mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
rename to vnf_drop_extra_points
This commit is contained in:
parent
cd85b3b1f4
commit
a12a258635
6
vnf.scad
6
vnf.scad
@ -496,14 +496,14 @@ function vnf_quantize(vnf,q=pow(2,-12)) =
|
|||||||
[[for (pt = vnf[0]) quant(pt,q)], vnf[1]];
|
[[for (pt = vnf[0]) quant(pt,q)], vnf[1]];
|
||||||
|
|
||||||
|
|
||||||
// Function: vnf_clean_unrefs()
|
// Function: vnf_drop_extra_points()
|
||||||
// Usage:
|
// Usage:
|
||||||
// clean_vnf=vnf_clean_unrefs(vnf);
|
// clean_vnf=vnf_drop_extra_points(vnf);
|
||||||
// Description:
|
// Description:
|
||||||
// Remove all unreferenced vertices from a VNF. Note that in most
|
// Remove all unreferenced vertices from a VNF. Note that in most
|
||||||
// cases unreferenced vertices cause no harm, and this function may
|
// cases unreferenced vertices cause no harm, and this function may
|
||||||
// be slow on large VNFs.
|
// be slow on large VNFs.
|
||||||
function vnf_clean_unrefs(vnf) =
|
function vnf_drop_extra_points(vnf) =
|
||||||
let(
|
let(
|
||||||
flat = flatten(vnf[1]),
|
flat = flatten(vnf[1]),
|
||||||
ind = len(vnf[0])<800
|
ind = len(vnf[0])<800
|
||||||
|
Loading…
x
Reference in New Issue
Block a user