Jump to content

Get velocity Vector from nearpoint

Recommended Posts

Hi Everyone,

I'm a bit lost on this one,

I've got lines growing in a solver, when those lines intersect, I'm trying to get the velocity vector of the closest point set as the new velocity for the intersecting lines.

I'm getting the right result for the first intersecting point but the following one is getting the former direction and snaps back to the original direction, even tho the intersection is still happening according to the spreadsheet.

The aim is to get the intersecting line to follow the other one in a parallel manner.

Hip file here:  intersect_contour.hip

Any insight is welcome!


thanks a lot,





Screen Shot 2018-09-08 at 17.14.54.png

Screen Shot 2018-09-08 at 17.14.23.png

Edited by F10

Share this post

Link to post
Share on other sites

you are overwriting v@newdir every iteration from v@dir attribute so it will always wipe out your found intersection value

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now