Edge Groupe by angle

   4372   4   2
User Avatar
Member
31 posts
Joined: 8月 2015
Offline
Exist way to make edge group with green edges and ignore red edges?

Attachments:
Screenshot 2017-03-07 23.47.41.png (876.9 KB)

User Avatar
Member
682 posts
Joined: 9月 2013
Offline
Try using a polyframe SOP to change normals (eg. setting ‘tangent’ to ‘N’) before creating an edge group based on normals. In the end reset the normals with a normal SOP.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
31 posts
Joined: 8月 2015
Offline
I do this with attribute wrangle
code:

int points = neighbours(0,@ptnum);
int num;
float dotp;
vector pos;
vector angle;
foreach(num; points){
pos = point(0,“P”,num);
angle = pos - @P;
dotp = dot(@N,angle);

if(dotp > -0){
@group_ExcludeGroup = 1;
}
}
User Avatar
Member
143 posts
Joined: 10月 2015
Offline
Or you can do it with SOP only by measuring curvature withe the measure SOP to get the concave edge then invert the group …it's not 100% sure but no coding…

Attachments:
group_convex.hipnc (65.4 KB)

User Avatar
Member
93 posts
Joined: 3月 2014
Offline
I have created another one variant for concave/convex edges. I used VOP and Python nodes. I attached some screenshots and my HIP file.
Edited by Pavel Geraskin - 2022年1月19日 12:25:54

Attachments:
tmp_1.hip (499.3 KB)
tmp1.png (127.4 KB)
tmp2.png (19.4 KB)

  • Quick Links