Hi everybody
i have a bit of a geometric problem that is related to a sculpture that
im working on, i ve worked out the solution involves using pythagoras'
theorem and some very very simple scipting that is beyond me, and with which i would really appreciate some help with !!
here s a quick explanantion ( but is probably best if u take a moment to
look at the jpeg that i have attached.
i basically have a polyline consisting of a given number of segments (
which vary), the points of which are extracted and then (apart from the
first one) moved down so that the a line of fixed length can be built
through them. the original polyline sits on the ground plane, as i have
the segments vary in lengh, this information is exrtracted using the
'length component' ....
basically for each segment you make a calculation using pythagoras'
theorem to work out the length of short edge('c')of the right angled
triangle, as you have the hypotenuse ( which is the fixed length) and
you have the length of the original line ( 'b'), ie, the amount the
point has to drop in the z-axis , but clearly each successicve vlaue
needs to added together.
so what i would really appreciate is if some could give me some
scripting asssitance ! as i feel that i need a way of adding the
successive values of 'c' together and then adding them to the new 'c'
value. i woudl count myself as a very proficient in general grasshopper
but my scripting is nt up to much ! so any help would be really
appreciated !
thanks in advance
louis
Tags:
- Attachments:
-