Grasshopper

algorithmic modeling for Rhino

Hello!

 

I'm trying to populate a interpolating curve on a surface. It has some basic parameters like thickness and height but also how many curves that shall be populated and how many waves shall be done.

The algorithm begins with a surface which is divided into points. These points are made for creating the interpolating curve in a later step. By translating the points into a new coordinate system (made up by a surface surrounding the first surface) the points can be rotated when placed in the coordinate system made by the surface we want to populate the points (and finally the curves) on.

Before placing the points on the target surface, the target is evaluated so the thickness of the wave will be the same throughout the population. A ratio is made between each step of the wave to compensate for the size difference and each point is then moved to create a parallel curve which is used to create the thickness.

Now the points are translated to the target surface and a curve on surface is drawn trough the points and these curves are used to make a loft. The target surface is also offset to create a duplicate of the loft. The borders of the loft is lofted with the offseted loft trying to make it a solid. Why rail isn't used is because is does not make the profile twist in the axial direction.

Now to the problems

First of all, the thickness it totally out of shape. It do keep some waves in the same thickness or at least on a some places. How could I do to this better?

 

Second, the lofting between the lofts does work that well and I have no clue why...

 

 

Third and maybe most important; I want the curves to be distributed perpendicular to the surface centerline. But at the same time I want target surfaces which are sharing the same contour to be distributed together so the high and lows of the wave meet. You can see the perp lines in the picture below.

 

I'm glad for any help I can get as this is getting on my nerves... I'm not even sure this is the right approach to the problem.

 

Thank you!

 

//Oliver

Views: 804

Attachments:

Replies to This Discussion

Since I posted this question I've been trying new ways to manage the problems. 
I have succeeded with both the first and second issue by subdividing the surface, projecting a curve in every subsurface and make profiles along these which are then lofted.

But I still want to distribute the curves meeting point perpendicular to a thought line going through the 0.5 either U or V coordinate, depending on which one follows the longest side of the surface.

Here is the new def http://db.tt/bflmJKLG (why it isn't embedded in this message is because I'm writing from my phone and the link provided is to my dropbox)

// Oliver 

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