Skip to content

Instantly share code, notes, and snippets.

@bonsak
Created June 29, 2016 15:23
Show Gist options
  • Save bonsak/b122b4822a29708843019c3958cdec67 to your computer and use it in GitHub Desktop.
Save bonsak/b122b4822a29708843019c3958cdec67 to your computer and use it in GitHub Desktop.
Edge_Kernel.vex
int closept[] = pcfind(0, "Cd", @Cd, 0.1, 9);
vector kernelsum = 0;
vector firstcol = point(0, "Cd", closept[0]);
for (int i = 1; i < 9; i++){
vector closecol = point(0, "Cd", closept[i]);
kernelsum += ( closecol * -1 );
}
f@density = length( kernelsum += ( firstcol * 8 ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment