Align import geometry to vector

I am currently working on a project in which I have to align import geometries along a vector that changes direction. The alignment of the geometry works, but the dimension of the geometry changes. As soon as the direction of the vector is changed, the geometry becomes larger or smaller.
I have already tried to correct this with a scale node, but this did not work. The length of the vector was also fixed.

I would be glad for any input

gh file?

@Sascha_Rey here’s a demo on how to orient objects arbitrarily
orient_demo.gh (8.8 KB)

you basically move and rotate and object from one plane (origin, direction) to another (origin, direction) - no scalling occurs

here there’s a line that was passed to a divide curve, and used the points and tangents to construct a series of planes which were used to orient the center box

1 Like