DBaciu Posted October 19, 2011 Share Posted October 19, 2011 Hello everybody. I have a few modeling problems that I solved, but in a big ugly way with a lot of nodes. So I thought that maybe somebody can help me with these. The images below will illustrate them. Ps: of course everything must be done in a procedural way... Quote Link to comment Share on other sites More sharing options...
gaurav Posted October 20, 2011 Share Posted October 20, 2011 Hi, If i understand it correctly, For problem 1 you can just dissolve the edge and for 2 & 3 use curvesect. Attaching hip. Cheers!! curve01.hipnc Quote Link to comment Share on other sites More sharing options...
DBaciu Posted October 20, 2011 Author Share Posted October 20, 2011 Vectorblur, thank you very much for your answer. For the problem 1, you can't see in my image but the box doesn't have the bottom, which makes dissolve Sop delete the bottom point also. But I can leave the bottom of the box where it is and delete it afterwards. Anyway, selecting the edge procedurally for the dissolve Sop to work is problematic. For problems 2 and 3, yes, it can be solved with curvesect, but I was looking for a more direct, reliable method. For problem 3, the triangle sits right on top of the rectangle, there's no gap between them, and the points that described them must be in the same place after joining. You moved the triangle in order to overlap them so the curvesect can work more reliable. See image 1. The question that I have can be described more generally by the image 2: Can I insert a point at an arbitrary position (on an edge)? Quote Link to comment Share on other sites More sharing options...
zarti Posted October 20, 2011 Share Posted October 20, 2011 id suggest the clipSOP . .. inside the 'cosmetics' subnet you can choose to keep the old point 1 . addPointAndMergez.hipnc Quote Link to comment Share on other sites More sharing options...
zarti Posted October 20, 2011 Share Posted October 20, 2011 .. Can I insert a point at an arbitrary position (on an edge)? use polysplitSOP . single click over an edge and press Enter . Quote Link to comment Share on other sites More sharing options...
gaurav Posted October 20, 2011 Share Posted October 20, 2011 The question that I have can be described more generally by the image 2: Can I insert a point at an arbitrary position (on an edge)? I would use polysplit. A point 3/4 way on the edge between point 5-6 would be in the following form p5-6:.75 one can always adjust the new point position using override bias option too. Cheers!! Quote Link to comment Share on other sites More sharing options...
DBaciu Posted October 22, 2011 Author Share Posted October 22, 2011 Thank you for your replies. I used them with mixed results. The thing is that if you want to use them in a procedural way, well... The hell break loose. Using the clip sop was a good idea though, with some reserve. Let's say that the primitive to cut is not in XY plane (or YZ or ZX) but is having a random orientation. I have to orient the cutting plane of the clip SOP to match the orientation of the primitive. I can extract the normal direction of the primitive using "prim" or maybe "normal" expression function in the "Direction" parameter of the clip SOP, but this makes the cutting plane parallel to the primitive to cut. So, the question is: How can I rotate the defined cutting plane around an axis 90 degrees? The question is more general: How can I translate the direction information retrieved by using "prim" expression functions (which I think is a vector) into degrees? Can be done into an expression? I'm afraid this is involving dot products, transform matrices an stuff like that... Quote Link to comment Share on other sites More sharing options...
zarti Posted October 22, 2011 Share Posted October 22, 2011 (edited) .. I'm afraid this is involving dot products, transform matrices an stuff like that... oc you can do that , but you do not necessarily need to align the clipSOP in order to merge both prims . it was just used to add the point into the rectangle in a precise position . nothing more . =) below i uploaded another non-ortogonal-version .. addPointAndMergez2.hipnc p.s. : i modified the primSOP which attaches the triangle to the quad . .. edit : forgot to say that you can move the timeline to see random orientations of source geometry . Edited October 22, 2011 by zarti Quote Link to comment Share on other sites More sharing options...
DBaciu Posted October 23, 2011 Author Share Posted October 23, 2011 Zarti, thank you for answer. Of course the clip SOP doesn't need to be aligned in order to cut and create the point that is needed to properly fuse the primitives, with one observation: what happens if the cutting plane ends up (in some particular case) parallel with the primitive to cut? Remember this must be procedural... Anyway, I still want to find a way to translate from extracted direction to rotation. Or at least to rotate the vector. Even without any effort about a gazillion uses for that are crushing into my mind... Quote Link to comment Share on other sites More sharing options...
zarti Posted October 23, 2011 Share Posted October 23, 2011 (edited) this seems to work .. addPointAndMergez3.hipnc ( with expressions / VOPs the clipping plane orients always correctly ) Edited October 23, 2011 by zarti 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.