XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Querying Border Edges Script Issue

09-10-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-11-2010, 12:44 AM
the -fl flag seems to have fixed this too.

Should be:

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

CGTalk Moderation
09-11-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.