bentway23 Posted October 21, 2019 Share Posted October 21, 2019 (edited) I have a line hovering above another object (in this example, it's just a grid, but it's more irregularly shaped in what I need). I would like it so that the line length matches the width of the object directly underneath, without reorienting the line, and preferably without actually snapping it to the new point (in y). Ideally, if I could extract a bbox D_XMIN (/MAX) (or a getbbox min.x), but only at the point in z where the line is, then I could just translate the points to that location. I'm sure this is super-simple, but I'm not quite sure how to go about it. A ray SOP gets me in the ballpark, but presents some problems, as in the pics. Thanks! lineray.hiplc Edited October 21, 2019 by bentway23 Quote Link to comment Share on other sites More sharing options...
Sepu Posted October 21, 2019 Share Posted October 21, 2019 Look for the intersection analysis node. Quote Link to comment Share on other sites More sharing options...
bentway23 Posted October 21, 2019 Author Share Posted October 21, 2019 I know how to use that to, well, detect intersections, but I don't see any options on it useful here. Is it one of the output attributes? Quote Link to comment Share on other sites More sharing options...
kleer001 Posted October 21, 2019 Share Posted October 21, 2019 Easy fix, use a grid that's bigger than your line and then ray SOP it down with a vector, not closest. Quote Link to comment Share on other sites More sharing options...
bentway23 Posted October 21, 2019 Author Share Posted October 21, 2019 That's actually the reverse of what I want--I want the points to match the edges of the grid (and preferably not move in y). That moves the line in y but doesn't match the length to the point of the grid where it drops down. Quote Link to comment Share on other sites More sharing options...
Sepu Posted October 21, 2019 Share Posted October 21, 2019 (edited) Is this what you want? Im kind of confused what you are asking. Edited October 21, 2019 by Sepu Quote Link to comment Share on other sites More sharing options...
bentway23 Posted October 21, 2019 Author Share Posted October 21, 2019 That's exactly what I want! What is happening with the intersection analysis and add? Quote Link to comment Share on other sites More sharing options...
Sepu Posted October 21, 2019 Share Posted October 21, 2019 nothing much the intersection analysis is just the default and the add is to make a line from the pts (which are coming from the intersection analysys) Quote Link to comment Share on other sites More sharing options...
bentway23 Posted October 21, 2019 Author Share Posted October 21, 2019 Perfect. I sort the points, use a wrangle to delete all but the first and last, and I'm good to go. This requires it to be even with the grid(/surface) in y, but it's easy enough to throw a transform after to raise it up afterwards. Thanks! Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted October 21, 2019 Share Posted October 21, 2019 The facet node removes those inline points for you. line_intersect.hipnc Quote Link to comment Share on other sites More sharing options...
bentway23 Posted October 21, 2019 Author Share Posted October 21, 2019 Cool. In this case I didn't actually have a grid, but a very lumpy thing so there were few actual inline points. That's a good thing to keep in mind, though! 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.