-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inset Special Mk2 #4060
Inset Special Mk2 #4060
Conversation
very nice indeed. super fast :) |
Is it faster know than |
Yes is faster but not so robust for concave polygons. Even with "Concave support" enable fails for polygons with weird shapes |
fails? as in flipping normals? not that that really matters, weird shapes polygons are uncommon, unless the user is specifically passing that kind of mesh, in practice it's not bothered me. |
ah, it doesn't know what's inside or outside, in the case of the concave. and therefor it doesn't know which direction to move the new vertex towards. just using the angles between consecutive verts isn't enough, i was working on an algorithm for this, if i recall correctly it used the fact that further processing was needed if it encountered any crossover edges (or non colinear edges pairs) lots of methods to choose from, if A is the original edge, and B is the generated edge, if the middle of edges A is not offset distance away from the middle of edge B, then mark that vertex as a boundary of inflexion. |
Yes, i was also thinking about some method @Durman suggested, something like: pick the most left vertex of the polygon, |
Inset Special Mk2:
Speed test done with a 5000 faces voronoi sphere
Upgrades:
New modes:
New Input:
New outputs:
0 = Original Polygon
1 = Side polygon
2 = Inset Polygon.
Custom Normal Example
Original Face idx and Original Vert Idx Example
New verts mask used to bevel only inset vertices
Pols group output to filter the outputted polygons