Grasshopper

algorithmic modeling for Rhino

hello! is it possible to find a formula (or to achieve it it in any other way) that finds the scale factor which provides me that also the last segment has the input distance when i divide a closed crv by a defined distance?

Views: 459

Replies to This Discussion

sounds like a good use of Galapagos.

This problem is probably having many optima. I suppose that you can use the following, but I sense that you are looking for something more direct, than running an evolutionary solver.. I am not sure if you can find it.

Best

M. 

Attachments:

The length of a curve scales linearly with 3D scale factor, so it would be fairly easy to do this as long as your division points are measured along the curve, not in 3D space (i.e. don't use Divide Distance).

Basically define your division length (d), the number of segments you want (N), measure the curve length (L) and your scale factor should be (d*N) / L

--

David Rutten

david@mcneel.com

Poprad, Slovakia

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thank you guys! sorry michael and marios, if forgot to to say except galapagos and kangaroo :-p

david (like always) very functional and descriptive!

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