Grasshopper

algorithmic modeling for Rhino

Hi everybody,

I created a row of circles which are rotated as shown in the image.

If i offset the circles

circles (1-12) are offset to the inside while the rest (13-21) is offset to the outside.

I need actually all circles either to be offset to the outside or the inside.

I would appreciate if someone could 

help me to understand why this is happening.

I have attached the grasshopper file and a jpg

Thank you for your support.

Views: 1148

Attachments:

Replies to This Discussion

Hi Findie, try this.

Attachments:

thank you Ethan 

for your super quick response!!!!

your definition works.

Just wondering whats wrong with mine.;)

Thank you for your quick thanks! I think that as you rotate the circles, the plane GH uses to define each circle also changes, at some point flips and when it flips what was an inside offset becomes outside. My addition maintains the same orientation for all by using a frame defined by a surface but I welcome any other explanations.

Now I'm not so sure of my explanation, since I connected a Deconstruct Arc component to the circles and the planes displayed don't suddenly jump after any particular one, whereas in my 'fix' they do jump. So, that makes two of us who are confused.

Ethan, indeed this is what happens.

Get a more "generic" way to test/manage closed planar non intersecting curve orientation(s) (including polylines as curves).

Attachments:

Thanks Peter. What also confused me was when I baked the circles and looked at the orientation (a ham-fisted way of doing what your code does), they all appear in alignment. I guess I was not taking into account the fact that in some cases I was actually looking 'down' at the circles and in other looking 'up', in which case the alignment would be reversed.

Baked stuff is re-oriented ?? That's rather strange (unless David did some magic on that matter).

Anyway ... notify if you want a "generic" case (bad news:  only via code): offset on things (polylines(*)/curves, open/closed, valid/invalid/freaky, clockwise/counterclockwise)  and other mysterious weird ops.

(*) measure angles, get rid of the "small segment" syndrome and manage self intersecting stuff (when Karma is out of duty).

Thank you guys for the explanations!!!!

Another approach is to do the 'Offset' earlier (purple group) and rotate the 'RuleSrf':

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service