Input parameter for component

Hi guys,

Assume I have a component requiring an point input, P0. Now based on the input point P0, I have create a solid square as the output of this component. How could I choose a vertex point on this square as input parameter for my grasshopper component again? I know I can bake the grasshopper component, so I can use one vertex point on the square as input parameter for my grasshopper component again. This is only a simple example, similarly how could I use the edge of the square as input parameter for a component without baking a component, or at least I can choose the two vertex points on the square as input parameter for a grasshopper component without baking it.

Do I have to bake the grasshopper component so I can use the vertex point as input parameter again?

Thank you
Regards
John

Do you have a file to demonstrate what it is you want to do?

No. Look at Deconstruct Brep.

3. Attach minimal versions of all the relevant files

Hi

Thank you for your reply.

Attached is the image showing the brep I have created, now I want to use the two points (marked as red circle) as reference. It can be also other two or three points.

Regards
John

Thank you for your reply.

Deconstruct Brep is not a solution for me as I need to let choose specific pair of points, not all the points at once.

Regards
John

:man_facepalming:

Can you post the .gh file?

no, .gh file needs my component which is under dev. My problem is just how to use the two points on the brep which is output of my component without baking.
John

If you’re building this brep with a component that you have coded, you should be able to get these vertices with the code in your component (get Brep.Vertices, sort accordingly, and take the first or last 2).

Similar workflow with grasshopper components:

-Kevin

thank your guys for the response. This is not what I intend to do. When you have created a solid box, user should be able to pick the two or three vertex and use them as the input parameter to the next component. I don’t know which two, three or four vertex user want, but should be any vertex, but I know what user want to do based on the vertex selection. I want to have similar point component under “geometry” which you can set to the vertex from a unbacked grasshopper entity’s vertex.

Regards
John

Couple of possible solutions in this thread:

-Kevin

Hi Joseph_Oster,

After I use “Deconstruct Brep”, could I use a dialog to list all the edges in my codes and let user choose the right one? I don’t want to bake it as it will lose the parametric feature of the modeling.
Look like the entities created inside grasshopper are not selectable, that’s the whole reason.

Regards
John

Yes, look into the “GrasshopperPlayer”.

Why not use List Item? :roll_eyes:

1 Like

Sure, or even a Value List if the geometry is the same every time, but the op mentioning:

is what prompted me to suggest the Grasshopper Player.

Yes, and the content of a Value List can be defined as appropriate for any geometry, even if it changes.