Grasshopper

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 

Views: 1420

Attachments:

Replies to This Discussion

You didn't internalize your 'Geo' param ("Curve along which the elipse should be rotated").

Not quite sure what you mean by rotate, but maybe you want to start with a 'PFrame' at each point?

Attachments:

Sorry I forgot. Here it goes again.

Attachments:

Using your curve instead of mine - same effect, 3D view:

Attachments:

Thanks, but I need it to be in the xy plane. 

You didn't internalize your geometry so I created my own ellipse and curve but you should get the idea.

Attachments:

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.

Attachments:

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.

Attachments:

I will look at it thanks!

Or... maybe you want to create a 'RevSrf' out of each ellipse and string them along lengthwise, like beads?

Attachments:

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. 

It looks like you tried to mate Joseph and my solution with unpleasant results, so working with that, I made some changes. I also used my own curve for demonstration purposes because yours is about 8000 meters long, while the ellipses are tiny.

Attachments:

Thank you very much! It works amazingly!! Thank you all for your help!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service