Create a list 4 points


Sorry for my english is not good.
I have created a list of points. Now in I want from the list that filter out the list as shown in Figure 4 points closer together. Adaptive purpose to load family.

Had this exact question come up in a workshop I hosted today. Lucky you…

pt[][];

geom = [Imperative]
{
	ptList = {};
	for (i in 0..List.Count(pt)-2 )
	{
		ptList[i] = {};
		for (j in 0..List.Count(pt[i])-2 )
		{
			ptList[i][j] = {pt[i][j], pt[i][j+1], pt[i+1][j+1], pt[i+1][j]};
		}
	}
	return = ptList;
};
2 Likes

There are some custom nodes to do that.

Another solutions:
http://dynamobim.org/forums/topic/populating-polygons-on-a-surface-using-replication-kind-of-urgent/#post-31411

1 Like

//Quads
pnt1=List.DropItems(List.Sublists(pnt<1><2>,0..1,1)<1><2>,-1);
pnt2=List.Reverse(pnt1<1><2><3>);
pnt3=SetUnion(List.DropItems(pnt1<1>,-1),List.DropItems(pnt2<1>,1));
1 Like

Thank You