Planarsrf input

Hello I am something of a novice at scripting with grasshopper.

So I will ask a very basic question.

I have created a curve component which I am trying to input into a Planarsrf component.

The three inputs in the second component seem very simple.

Plane, X and Y.

Here we reach the tricky part where Grasshopper has to interact with Rhino itself.

For plane I can right-click. I get a series of options, i.e. select one plane or multiple planes and I can select this info such as a curve I drew in Rhino.

Selecting input for the X and Y info is more difficult. I get a whole series of options which I summarise in attached jpg.

Which one should I select? Both X and Y seems to be a value which could be defined by one value, a length, and not two values, a pair of coordinates defined by X and Y cartesian points.

Any ideas how to approach this?

Thank you.

Hi,

X and Y are Domains, which is an interval of values, between a minimum and a maximum.
This is useful to define lengths that don’t necessarily start at 0. For instance if you want a rectangular surface centered on the origin of the plane and of side 1, you can provide a domain “-0.5 To 0.5”.

The best way to define Domains is to use Construct Domain.

You are providing a Curve parameter (Shelve Crv) into X and Y, this is problematic. Grasshopper transforms the curve into a number by taking the length of the curve, than the number to a domain [0,length]. This doesn’t seem to be what you want.

That being said, I think you are using the wrong component here anyway. PlaneSrf returns a rectangular surface based on a plane.

Long story short : if you want to fill a closed curve, you want to use Boundary Surfaces.

Can you extrude resultant surface parametrically?

Yes, use the Extrude component. It works for curves of surfaces.

Here is approach I have taken, still using Planarsrf component. I have plugged in two Construct Domain components, values taken from original curve. So Extrude component should work since it has a base and direction vector. However, it does not, Planarsrf component is still coloured orange. Any idea what is going wrong??
Thanks for your help.

You are setting a domain that has no length, because you give it the same min and max values ! Read the error message.

There is no way this is going to work, you HAVE to use Boundary Surfaces.