Grasshopper

algorithmic modeling for Rhino

Dear,
i have a stupid problem with offset command that drives me crazy.

to offset a line you need to set an integer for the distance. this number can be positive or negative and gives you the side where your line is created.

i've noticed that inclination of the line matters because it inclinations is more than 45° than the side of the offset switch (with no relation with the positive or negative integer)!

in the file it is much easier to understand.

this behaviour creates me problem if i apply offset to elements with different angles.

is there a way to define more precisely the side of offsetting?

thanks for your help

Views: 595

Attachments:

Replies to This Discussion

Hi Roberto,

I believe this is fixed the latest Rhino5 release, is that correct? Otherwise it should be fixed when the next Grasshopper goes out.

--
David Rutten
david@mcneel.com
Seattle, WA
Ciao Roberto!
Per com'è fatta la tua definizione non consente di farlo, ma puoi invertire il verso della seconda curva utilizzando il componente Flip (Curve > Util) e quindi applicando l'offset ottenere il risultato che desideri.
Ti allego la definizione.
Ciao

Giancarlo
http://rhinoart.info
Attachments:
grazie mille ma questo è un controllo "manuale" che è possibile fare per semplici geometrie. in realtà il mio problema si genera in geometrie più complesse, in cui non puoi sapere a priori se l'angolo che si creerà sarà > o < di 45°. anzi in alcuni momenti, potrebbe essere che ci siano entrambe le condizioni.

non c'è un modo per fare l'offest, per esempio, in senso orario?

grazie dell'aiuto!
è vero, per geometrie complesse questo sistema non funziona, del resto mi sono basato sulla definizione che hai allegato.
ad ogni modo non vedere la cosa in termini di < o > di 45° ma di "verso" delle curve: quando crei una linea ha importanza l'ordine con cui specifichi il punto A e il punto B; noterai che scambiando i due input l'offset verrà fatto dal lato opposto della linea.
per fare l'offset "in senso orario" quindi, basta controllare con che ordine vengono presi i punti attraverso cui passano le curve: con liste e data tree questo è possibile.
Ciao

Giancarlo
http://rhinoart.info

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