Grasshopper

algorithmic modeling for Rhino

Hello,

 

I have my own class for Points. I have a custom GH component with 2 output params. I add my points(as Point3d) and the number of each point.

 

       

protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)

        {

            pManager.Register_BooleanParam(

"Input", "IN", "Connection to RSTAB", false);

            pManager.Register_StringParam(

"Get Path", "Path", "Get Path to Data", MyPath);

        }

 

       

protected override void SolveInstance(IGH_DataAccess DA)

        {

           

List/font>int> num = new List/font>int>();

           

List/font>Point3d> Pnt = new List/font>Point3d>();

                   

foreach (var My_Node in Node)

{

                        num.Add(My_Node.No);

                       

Point3d point = new Point3d(My_Node.X, My_Node.Y, My_Node.Z);

                        Pnt.Add(point);

                    }

...

 

When i put the GH component on canvas the points are displayed in Rhino. I tried to make my own point structure, but GH can't convert it into Point3d.

 

is posible to add my points to the component without showing this points in Rhino?

Views: 289

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service