Grasshopper

algorithmic modeling for Rhino

inverse function of transformation, length dependence of the width?

Do not know how to reduce the length of the cylinder and simultaneously increase the diameter, or increase the length of the cylinder and reduce the diameter?
must have a length of a curve on a surface of constant length. Please any advice on how to do it. Thank you.

Views: 2354

Replies to This Discussion

Depends on how you create the cylinders. You will usually have independent inputs for diameter and height.

You need a mathematical description of how height will vary with diameter (or the other way around). Then use math components or expression component to solve the other value for a given diameter or height and input both results into your cylinder creation.

You are right, the two parameters I need to synchronize the diameter increases, the height decreases, or vice versa, what it looks like math component? or components of an expression or a simple example of its use. Thank you for your reply.

It's really easy once you know where to look.

Given your answer I strongly recommend reading at least one of the primers in the "getting started" section if this site. > see here /a>

Thank you very much

Works great and so easy, you genius, and I'm a microbiologist and mathematics uncomprehending. Thank you.

can `t solve the problem, file with the curves, the length of the curve should be constant

http://www.grasshopper3d.com/forum/topics/2d-3d-spiral-frames-defin...

Sorry, I can't see any relation of this thread and the link?

What file?

file reference-helix increases depending on the height (h) and diameter (r), is it possible to link the sliders (h) with a slider (r) that would be the length of the spiral was constant during the deformation?

Thank you for your support

If you want to constrain one parameter to another one, you need to know its mathematical relationship. For the cylinder I used the volume as a given constant and calculated the radius from volume and height.

In case of the spirals you were linking to, this relationship isn't trivial. Actually there are three radii and heights involved.

If you only want a simple helix with constant radius r and given height h, the arclength calculates to L = T*SQRT(r^2+h^2), where T depends on the number of wraps your helix has. (see here) You can use this equation to relate radius to height.

If your spiral is spline as in the example through multiple points, the length is way harder to calculate. You could fake it by lets say using the inverse of height as a radius. That way, the height will decrease with radius but the length will not remain constant.

Yes you're right, it requires a new algorithm, I need to find a model video, (r) curves are able to change the length, if there are options please send to my mail. Regards, Yuri

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service