Jump to content

VEX selecting border edges


davidyannick

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
Link to comment
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 :)

Link to comment
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

Link to comment
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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...