AntoineSfx Posted July 3, 2021 Share Posted July 3, 2021 I have one self intersecting curve in plane, or maybe two. Say curve 1 is the road, curve 2 is the river. I'm looking a for a way to find the points on the road curve that intersect the river curve, ideally one point per intersection so that I have a clean location downstream to copy a bridge or something. I'm also interested in the case of just one self intersecting curve (for example, in order to copy dominoes on the curve and run a RBD simulation). There may or may not be a point on either curve near the intersections. I had moderate success using attribute transfer + carve In the screenshots, I did it manually using group point / edit / translate Y / soft radius So basically I'm looking for a way to split the curves - not at their intersection points, but further down and up in order to make bridges... Quote Link to comment Share on other sites More sharing options...
boby Posted July 5, 2021 Share Posted July 5, 2021 Did you try the intersection analysis node? (you'll need to scale everything to 0 on the Y axis before) Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted July 5, 2021 Author Share Posted July 5, 2021 28 minutes ago, boby said: Did you try the intersection analysis node? (you'll need to scale everything to 0 on the Y axis before) I don't understand how to use it. I can't even find the intersection between two triangles. However I can get curvesect to work, but it lacks the output attributes of Intersection Analysis (if it worked as expected) Is it possible for you to provide a minimal example using intersection analysis ? Quote Link to comment Share on other sites More sharing options...
boby Posted July 5, 2021 Share Posted July 5, 2021 (edited) Well, nothing crazy really.. it just works here (18.5.351) Curves have to be open polygon (no faces) Edited July 5, 2021 by boby Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted July 5, 2021 Author Share Posted July 5, 2021 5 minutes ago, boby said: Well, nothing crazy really.. it just works here Can you provide the file ? There is a requirement on the input geo that I don't get. Quote Link to comment Share on other sites More sharing options...
boby Posted July 5, 2021 Share Posted July 5, 2021 Can't send any .hip file from here sorry. It's 2 circles set as ZX planes and "open arc". It's then fused to avoid interstionAnalysis to detect the first/end point, then merged and put into intersectionAnalysis which output the 2 intersection points 1 Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted July 5, 2021 Share Posted July 5, 2021 Here is a simple setup using intersection analysis. intersection_curves_displace.hipnc 1 Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted July 5, 2021 Author Share Posted July 5, 2021 (edited) Here is what I discovered and ended up using: If you drop a convert line SOP for each curve upstream from the intersection analysis, it make your life really easier in terms of breaking the curve like I intended to: You can use the output attributes from IA to carve the curve by iterating over the intersection points, then doing something like applying a carve SOP to the segments (which are primitives due to convert line) using the sourceinput + sourceprim to find the two segments, then sourceprimuv[0] to find the intersection point on those segments. Edited July 5, 2021 by AntoineSfx Leaving a screenshot for my future self 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.