breadbox Posted January 12, 2016 Share Posted January 12, 2016 I am trying to make a subdivided square but essentially keep all triangular topology. I can start with an X division, but then each subsequent subdiv level would like each polygon face or each "tri" to divide. This should be done in a very specific way, such that the hypotenuse is bisected and then a new edge connects between that midpoint of the hypotenuse and the origin of the triangle. The picture describes it all better than words. Notice that each new edge alternates between 90* and 45* (red lines are the new cut lines) with every other subdivision. For some reason I am having trouble executing this simply... I can imagine all kinds of crazy VEX code that will find the length of all the sides of the triangle on "neighbors" and compare them to find the hypotenuse, then find the midpoint, add a vertex, then add a connecting edge. It seems like this can be done with some extensive programming which I am about to embark on, but please tell me there must be a simple way and I am just overlooking an easy SOP node here? Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 13, 2016 Share Posted January 13, 2016 (edited) Subdivide + Edge Divide + Poly Extrude. Works for any mesh, not for subdivided squares only. alternate_triangles.hipnc Edited January 13, 2016 by f1480187 1 Quote Link to comment Share on other sites More sharing options...
breadbox Posted January 13, 2016 Author Share Posted January 13, 2016 Is this an H15 file? The poly Extrude does not load. I think the example is close to what I had.. but the problem is when you start with a grid it and then subdivide first THEN triangulate it doesn't quite replicate the pattern above. I'll try to make another image example to show the pattern of subdivision. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 13, 2016 Share Posted January 13, 2016 Yes, 15.0.344. The Poly Extrude SOP was changed several weeks ago according to Journals, you may want to consider update anyway. Here another solution using VEX. triangle_subdivide.hipnc 3 Quote Link to comment Share on other sites More sharing options...
breadbox Posted January 13, 2016 Author Share Posted January 13, 2016 wow this is excellent. Exactly what I was looking for. I had hoped there was a non vex way to do it and I was overlooking a really simple sop node.. but regardless this is super elegant. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.