Populating polygons on a Surface using replication

Hi, I am trying to use replication to populate points on a surface.


I pass on a series to a “Surface.PointAtParameter” node, and set Lacing to “Cross Product”. Naturally I get a list of lists of points.











Now, if I feed this output to a “Polygon.ByPoints” node, I get a series of zero-area polygons, that because they created for each list of points that are nested in the overall list.

My question is:

Is there a way to make it pick every four points to make quads? I know how to do this in Python, but I am trying to achieve this without Scripting–only using Nodes and replication.

Thanks for any feedback in advance.

So, you are trying to take a grid of points and find quad groupings?
Take a look at this node on the package manager: Quads from Rectangular Grid.
it's just a custom node that I made out of regular nodes, so there is no "scripting" involved (or only node based scripting, if that helps)



Edit: Replacing Missing files

quads-nodes.dyn (29.0 KB)

Edit: Updated missing file

quads-DS.dyn (4.3 KB)






Do you happen to have a copy of this? The older location seems to be generating 404 file not found.

p1 = srf.PointAtParameter((0..1..#u)<1>,(0..1..#v)<2>);
p2 = List.DropItems(List.Sublists(p1<1>,0..1,1)<1>,-1);
p3 = List.DropItems(List.Sublists(p2,0..1,1),-1);
p4 = List.Flatten(List.Transpose(p3<1>)<1><2>,-1);
p5 = List.Reorder(p4<1><2>,[0,1,3,2]);
1 Like