Skip to content

Commit

Permalink
Attrib Wrangle VEXpression preset -- number of points in vicinity #831
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyquest committed Mar 28, 2019
1 parent d5bbb85 commit 2fc62f0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions VEXpressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,25 @@ attribexpression/snippet
[qL] Random distribution (id)
chramp("distribution", random(@id*76))

attribexpression/snippet
[qL] Number of nearby points
len(nearpoints(0, v@P, chf('maxdist'), chi('maxpts')))

attribexpression/snippet
[qL] Number of nearby points (normalized)
len(nearpoints(0, v@P, chf('maxdist'), chi('maxpts'))) / float(chi('maxpts'))



attribwrangle/snippet
[qL] Number of nearby points
float maxdist = chf('maxdist');
int maxpts = chi('maxpts');
i@numnear = len(nearpoints(0, v@P, maxdist, maxpts));

attribwrangle/snippet
[qL] Number of nearby points (normalized)
float maxdist = chf('maxdist');
int maxpts = chi('maxpts');
f@numnear = len(nearpoints(0, v@P, maxdist, maxpts)) / float(maxpts);

0 comments on commit 2fc62f0

Please sign in to comment.