Grasshopper

generative modeling for Rhino

# math problem

hi guys:

i have this problem and my math skills are not go good

i have 4 points all moving on the z axis:

point 1 is at 0 (fixed)

point 2 has a slider that can go from 0 to 33

point 4 is at 33 (fixed)

how can i define that point 3 moves from point 2 but never goes above 33???

i hope this is clear enough

thanks fo any help

best

m

Views: 150

### Replies to This Discussion

So the elevation of point 3 equals the elevation of point 2 but never higher than 33?

You could use an expression, where you input the Z coordinate of point 2:

Min(z, 33)

That will limit the elevation to 33, while linking it to the elevation of point 2. It's also possible to complicate the expression, say:

Min(0.5 * z + 2, 33)

There is also a Min component.

--

David Rutten

david@mcneel.com

I guess i did not make a good explanation

i´m attaching my definition

point 1 is at 0 (fixed)

point 2 has a slider that can go from 0 to 33

point 3 can be at the same position as 2 or can move in the z axis but not higher than 33

point 4 is at 33 (fixed)

i´m trying to create a loft, the thing is that i don´t need a loop on the surface

thanks again

Attachments:

Not if I understood well the problem but it occurred to me

Attachments:

Thanks for you file fernando

but is not what i need

both of your points always have the same value on the z axis

check my definition

point 2 can move to 0 to 33

so say the value for pt 2 is 20

and that case point 3 should be able to move from 20 to 33

so in other word

pt 3 depends on pt 2

the problem is if i only have sliders

pt2 could be 20

and pt 3 could be 20, that is higher than 33

so the loft loops in itself

gracias por tu ayuda

salu2

m

It's late here so I might not have understood the problem... but see if this helps.

Attachments:

hey danny...this is exactly what i needed!

i will have to study the math on your definition

even though i understand it by reading it, i would have never been able to tackle it that way.

also the entwine component is great, never used it before

thank you so much for the lesson.

best

m

by Ann

by Ismael

by Ismael

by Ismael

by Ismael