NURB curve inside a polygon?

Hi
I can do this proces quite easy in Rhino, and I have tried in many ways to do the same in Grashopper.

In Rhino:
5 points + line segments from point to point + control point curve :

  • from point 1 - to midpoint line segment
  • to point 2 - to midpoint line segment
  • to point 3 - to midpoint line segment
  • to point 4 - to midpoint line segment
  • to point 5 - to midpoint line segment
  • to point 1 again, and close the curve.

I can then select point 1-5 (the “corner” points in the polygon)
and edit their weight and thus create very nice shapes inside the polygon,
that I can adjust via Edit Weight slider in Rhino.

Its a fairly simple process in Rhino

All control points weight 1:
07

midpoints weight 1 - Corner points weight 10 :

Midpoints weight 1 - Corner points weight 0.4 :

But how to define the same process in Grasshopper ?? Wow, thats not as easy as I thought.

I have tried many different approaches, and there are initially two things that I cant get to work.
I guess I am missing out on some fundamental stuff. Please help.

1: How to assign the “corner” points (point 1-5) AND the midpoints - to the controlpoint curve, in such a way , that a single curve is created, identical to the one I made in Rhino ?

2: How to adjust the weight on only control points 1-5 (the “corners”), and leave the midpoints to weight 1 ?

Please have a look at attached files - I have specified notes and questions in the Rhino file, so you can have a better visual overlook of the concept.


36


CTRL POINT WEIGHT.3dm (4.0 MB)

CTRL POINT WEIGHT.gh (8.1 KB)

CTRL POINT WEIGHT_re.gh (24.9 KB)

2 Likes

WOOOOW !!! That is really cool !

Thankyou sooo much!! :slight_smile:

@dowazura I will get back to you with the progress of this project ! :sunny: