algorithmic modeling for Rhino
Hi,
I am having an issue trying to rotate an ellipse so it following the same direction of a curve. I have attached an image that shows the ellipse in its position (red) and the rotation that it should have (pink).
Thanks in advance for all your help
Tags:
Sorry I forgot. Here it goes again.
Hi I just checked it and it just works when it is a ellipses that is along the curve but it doesn't work when the center of the ellipses is the end point of the curve. I send you the definition with the new addition that you kindly helped me with.
The attached file is not quite right but might be close to what you want. The idea is to create planes for the ellipses that are perpendicular to the circle. What my solution does is create points along the circle (the Divide object), find the tangent to each point (Eval), use these points & tangents as points and normals to construct planes (Pl), and then draw an ellipse on each plane (Ellipse).
The problem is that, for some reason I do not understand, the first ellipse has the wrong orientation. Since I have no idea why this happens I have no idea how to fix it. Hopefully someone else here knows why this is happening (and how to fix it.)
An even more peculiar thing is that if the number of ellipses is even, another ellipse shows up oriented incorrectly on the opposite side of the circle.
I would need this in 2d. Ethan Gross definition works, but the ellipses which have center point on the endpoints of the curve are not rotating in the right direction, only the ones that have a linear section on either side.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by