protected override void SolveInstance(IGH_DataAccess DA)
{
var points = new List<Point3d>();
if (!DA.GetDataList(0, points)) return;
var circle = CurveBig(points);
DA.SetData(0, circle);
}
public Circle CurveBig(List<Point3d> points)
{
//...
}
I looked at the c # help and it seemed like I found a working construction, but the result in the node is not output at all
Can you please tell me how to finish such a structure, or what am I doing wrong?
protected override void SolveInstance(IGH_DataAccess DA)
{
List<Point3d> points = new List<Point3d>();
List<Circle> Circle1 = new List<Circle>();
if (!DA.GetDataList(0, points)) return;
foreach (Circle C in Circle1)
{
Circle1.Add(CurveBig(points));
}
DA.SetDataList(0, Circle1);
}
//private CurveBig(List<Point> points)
//{
//throw new NotImplementedException();
//}
public Circle CurveBig(List<Point3d> points)
{
}
List<Point3d> points = new List<Point3d>();
List<Circle> Circle1 = new List<Circle>();
if (!DA.GetDataList(0, points)) return;
Circle1.Add(CurveBig(points));
DA.SetDataList(0, Circle1);
CurveBig takes a list of point3d objects and outputs a single circle. Therefore you need the entire list of points in the function and not just a single point like how you planned to send the data in.
The problem we have is that nobody knows what the CurveBig function does so until you explain what it does or post the code for it, there is no way of helping you.
Are you trying to create multiple circles, or single circles.
From AlexWer’s post which might be deleted by now, it looked like there is a large list of points and you want to output a list of circles for each set of three points in the list.
But that is just a guess. You will need to explain the use case for the project.