We know that equation of a helix that propagates along z axis is - X = Rcost, Y=R Sint, Z = at. If we vary the t and plot points, entire helix will be created.
However imagine one wants to assemble tiny lines one after another such a way that they put together, creates the helix approximately. We thought of an approach here - 1) Take two points in helix carve - a. (X,Y,Z) on above equation for time = t, b. (X,Y,Z) on above equation for time = (t + t1).
2) Try to figure out the (angle, axis) pair between two lines using this link.
3) Rotate small lines in 3D space along this (angle,axis) pair and create an series of lines for the helix.
However, this approach isn't working right - we tried checking the equations, but they seem right.
Is there a better approach to find the alignment of these lines along a Helix curve.
Any help is much appreciated!...
Regards.
So then I have an element which is upright (along the y axis). I calculate the point where it's base should be - that is the last point tk. Then I calculate (angle,axis) to move to tk + 1 and align the element along that angle, axis and I proceed.
– Ahant Oct 28 '19 at 12:03These lines within bracket may be of the topic of math.stackexchange . Just to clarity the background...)
– Ahant Oct 28 '19 at 12:07The option than calculating two points and finding orientation of a line connecting two points - I could think of - is simply add find a derivative of the equation. So for a simple sin(x), dy/dx provides the cos(x) curve and that cos(x) value represent orientation angle at that point.
Would doing a derivative of individual equations and collecting the angle to three axises will give the Euler Angle orientation of the curve at that point...?
– Ahant Oct 28 '19 at 19:23