Jump to content
davidyannick

VEX selecting border edges

Recommended Posts

What do you mean with border edges? In my opinion a cube doesnt have border-edges, while a grid has. The edges that isnt connected to any other geometry. But if you mean border edges like the hard angle, thats something different. Both are doable in vex, but different aproaches.

Edited by ThomasPara

Share this post


Link to post
Share on other sites
41 minutes ago, ThomasPara said:

What do you mean with border edges? In my opinion a cube doesnt have border-edges, while a grid has. The edges that isnt connected to any other geometry. But if you mean border edges like the hard angle, thats something different. Both are doable in vex, but different aproaches.

Yes I mean edges :)

Share this post


Link to post
Share on other sites

Set a normal node to 'points' and put this in an attribute wrangle:

if( max( abs(v@N) ) < 0.9 ){
    int nbs[] = neighbours(0, @ptnum);
    foreach(int nb; nbs){
        if(nb > @ptnum){
            vector nml = point(0, 'N', nb);
            setedgegroup(0, 'outer_edges', @ptnum, nb, max(abs(nml)) < 0.9);
        }
    }
}

 

box_edges.hiplc

Share this post


Link to post
Share on other sites
2 hours ago, konstantin magnus said:

Set a normal node to 'points' and put this in an attribute wrangle:


if( max( abs(v@N) ) < 0.9 ){
    int nbs[] = neighbours(0, @ptnum);
    foreach(int nb; nbs){
        if(nb > @ptnum){
            vector nml = point(0, 'N', nb);
            setedgegroup(0, 'outer_edges', @ptnum, nb, max(abs(nml)) < 0.9);
        }
    }
}

 

box_edges.hiplc

Thanks for your help :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×