Grasshopper

algorithmic modeling for Rhino

Hi,

I´ve been trying to do something for a while but i have not been able to achieve it.
I want to use Hoopsnake to create a line (newLine), this line which is created from a Evaluate Curve Point(Crv1) till closest point(Crv2)..........this line has just one constraint....its length has to be 50.

Do you know how can do it in Hoopsnake?

I attach a referencial image and files.

Regards,

Felipe

Views: 553

Attachments:

Replies to This Discussion

No has dicho qué bucle intentas hacer... Hoopsnake sirve para hacer definiciones recursivas, es decir las mismas instrucciones repetidas iterativamente.

Básicamente, tu metes en el primer input el dato que va a ser modificado, este sale por el primer output y realiza tu definición, la cual debe terminar con el mismo tipo de dato (el tipo de dato que sale del primer output) y enchufarlo al segundo input de Hoopsnake. En la siguiente iteración, el valor del segundo input pasa al primer output, y se repite el proceso.

Para ejecutar iteraciones, double click cobre el componente para abrir el panel de control.

Pero sin saber qué pretendes hacer realmente no se te puede ayudar. Si lo que quieres es algo como:

-Crv1 > PuntoEnCrv1.

-PuntoEnCrv1 > Closest Point to Crv2 > PuntoEnCrv2.

-NewLine (PuntoEnCrv1, PuntoEnCrv2)

-Repetir.

Entonces tienes dos opciones, según lo que quieras hacer, o usar el parámetro que define el punto en la curva como el tipo de dato principal (el cual no tiene sentido con la información que nos has dado), o usar la curva 1 para que sea reemplazada por la nueva linea en la siguiente iteración y así sucesivamente.

Daniel,

Básicamente lo que quiero hacer es que el punto que recorre la curva 1 se detenga cuando la línea creada entre ese punto y el más cercano(desde este punto)a la línea 2, tenga un largo de 50.

Gracias por las aclaraciones.

Saludos,

Felipe

For the rest of us:

Daniel,
Basically what I want to do is point that runs through Turn 1 is stopped when the line created between that point and the closest (in this respect) to line 2, has a length of 50.
Thanks for the clarification.
Cheers,
Felipe

Ah, pues haz una línea paralela a la curva 2 a una distancia de 50 y el punto donde interseccione con la curva 1 es el punto que buscas, no?

For the rest of us:

You have not said what you try to do ... loop Hoopsnake used to make recursive definitions, ie the same instructions repeated iteratively.
Basically, you get into the first input the data to be modified, this sale by the first output and make your definition, which must end with the same type of data (the data type exiting the first output) and plug the second input of Hoopsnake. In the next iteration, the second input value passed to the first output, and the process is repeated.
To run iterations, double click copper component to open the control panel.
But without knowing what you intend to do not really can help you. If you want something like:
-Crv1> PuntoEnCrv1.
-PuntoEnCrv1> Closest Point to Crv2> PuntoEnCrv2.
-NewLine (PuntoEnCrv1, PuntoEnCrv2)
-Repeat.
Then you have two choices, depending on what you want to do, or use the parameter that defines the point on the curve as the type of primary data (which does not make sense with the information you've given us), or use the Turn 1 to is replaced by the new line in the next iteration and so on.

Forgive everyone for writing in Spanish sometimes, but Googlenglish is a shit, I have to correct the translations (and still come out strange things) and it takes me so long time to write four shits.
However, the google translator is good for translate expletives,
puta vida. u.u

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