View Full Version : Querying Border Edges Script Issue

09 September 2010, 10:22 PM
Below is a bit of code I'm working on. The isBorderEdge procedure I found somewhere here (I believe it was Nathans)

string $edge[] = `ls -sl`;
global string $gIsBorderEdge = 0;

proc int isBorderEdge(string $edge)
int $n = size(ls("-fl",(polyListComponentConversion("-fe","-tf", $edge))));
return (!($n-1));
} //returns a 0 for non border edges, 1 for borders.


for ($i=0;$i<size($edge);$i++)

isBorderEdge($edge[$i]); //call isBorgerEdge procedure for current selection

$count = ( $count + isBorderEdge($edge[$i]) ); //tells how many border edges counted in total

print $count;

Problem I'm having is that when selecting edges on opposite sides of a deleted face, they are not being recognized as border edges. Any way around this?


09 September 2010, 12:44 AM
the -fl flag seems to have fixed this too.

Should be:

string $edge[] = `ls -sl -fl`;

CGTalk Moderation
09 September 2010, 12:44 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.