3D tube between two points

Hi all! I am testing how to buid a small visualisation of a laser rig. I am looking for the best way of creating a tube between two points. Well specifically between the points in forinstance two circular arrays. I have been digging around the forums and found a few topics on these types of tubes or splines, but most seem to “thread through” an array of points, but I need to be able to specify point one at the bottom and point two at the top. I have this working easily enough in 2d with a loop, but I am somewhat struggeling with doing this in 3d

Hi,

maybe this helps you:

ConnectPoints.vl (44.5 KB)

Basically, what is important are LookAt (RightHanded) (and invert that matrix), as well as some transformations to shift the center of the cylinder and give it the correct rotation so you can apply the distance of two points to the height of the cylinder.

2 Likes

GitHub - torinos-yt/VL.3D.Curve might that helps

2 Likes

@readme ‘s solution can be simplified a bit by using TransformBetween:

2 Likes

Nice, didn’t know that one and build the same thing from scratch way too many times ;)

I managed to build a version with an array of these curves (between two points). Neat Nuget! Thanks!

Thanks for the patch! The movement is very nice for a fully 3D patch. Though I am building something with static base points mimicing laser. Will share my progress at some point!