Automatically remove nodes from the mesh after a

certain threshold.
This commit is contained in:
Tim Beatham
2023-10-20 17:35:02 +01:00
parent c200544cee
commit 976dbf2613
12 changed files with 191 additions and 34 deletions

View File

@ -9,7 +9,7 @@ func RandomSubsetOfLength[V any](vs []V, num int) []V {
selectedIndices := make(map[int]struct{})
for i := 0; i < num; {
if len(selectedIndices) == len(vs) {
if len(randomSubset) == len(vs) {
return randomSubset
}