Grasshopper

algorithmic modeling for Rhino

Hi I was wondering if any one can help me with a seemingly basic transform.

I'm trying to re-size a group of curves which are in a disc form and fit to a different size and thickness disc. i'd like them to scale within keeping their relationship within the disc.

Any Ideas? 

Views: 1854

Attachments:

Replies to This Discussion

use the map to surf component

Attachments:

Thanks but that didn't work for what i was doing its not just a standard scale. the two rings vary in width. so the scaling is is more like a morph. is there any way to make the rings extents of the transposition rather than the whole box around them. is there a way of stretching the inner point of the ring to a different point than the outer point of the ring.

There is a move control point component
I have not my PC but I think you can extract all your control points
Calculate the new position of control points with a linear interpolation
Calculate the vector between new and old and
Feed move control points component with old position and translation vector
Thanks I'll give it a go tomorrow.

Hello, 

here are a solution, to morph curves which are between 2 curves to 2 other curves. 

The script uses "Point Deform" Component. 

This script doesn't still work with closed curves.

Attachments:

I tested my script with some changes, but it is not good.Circles are closed, end and beginning have same parameter ... I don't master enough domain, length parameter ... of curves.

The best must to use radius.  If r  is radius of control point, r1 r2 radius of circles FROM and R1, R2 radius TO. Your new crontrol point will have a radius of  :

R= R1+ (R2-R1)*(r-r1)/(r2-r1). 

Angle will be the same ... If you still have problem could you post your script ?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service