Jump to content
Elggetto

Select only concave edges

Recommended Posts

Posted (edited)

Hi!

I would like to select only concave edges (green edges on picture). Let's say I have a cube, with a small extrusion on one face. I know I can select edges by angle, but it selects concave AND convex edges.

edges.jpg.829cf8cd150e4199f5853b4c29719b7d.jpg

Any idea how to do it procedurally? Thanks!

Edited by Elggetto
Removed picture

Share this post


Link to post
Share on other sites

c'mon man, upload you file. Why ? coz if my mock up file doesn't match yours, then you've just wasted my time.

seriously, what's the worry ? losing IP of a box ? and when you say concave, you meant convex right ? Save all confusions and upload the file.

edges.jpg

selectedgesconcavity.hipnc

Share this post


Link to post
Share on other sites

Hi,

you can also loop over the edges. If an edge is convex, the dot product of the direction between the center of the first and second (incident) primitive with the normal of the first primitive should be less than zero.

 

edges_convexity.hipnc

Share this post


Link to post
Share on other sites

Thanks everyone. I checked all solutions and it's exactly what i'm looking for.

 

@Noobini Sorry, will do next time. First time here and I didn't know sharing files was the norm here. Thanks!

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

×