# How to distribute points along a single edge with geometry nodes

I have a mesh with a single edge/two vertices, which I've added a point instance geometry node instancing the "circle" mesh.

What's the most practical way to change the amount of circles being instanced? Let's say I wanted to animate that there's 2 circles, then 3, then 4, then 5...

Using the subdivision surface node doesn't work because it doesn't just add single points, but subdivides the generated edges.

Using point distribute just doesn't work... unless I'm doing something wrong, it seems to only work on faces, not single edges.

• Use mesh to curve then curve to point then point instances Commented Dec 11, 2021 at 15:23

## 3 Answers

In Blender 3.1. geonodes you can convert mesh to curve, then resample curve and put "Circles" along it with "Instances On Points" node.

If you want to make "Circles" appear one by one along curve, you should play with "Endpoit Selection" node.

But the most practical way to get the same effect is to use array modifier instead of geonodes. This way works in all versions of blender. And you need not to use single edge to do that.

So you should use array if you have just one single edge going along x axis. But your question became more reasonable for me if you have some geometry object with intresting shape and if you need to place your "Circles" along detached edges of this object.

In this case you will need a bit more complex node setup. In the example below i use "Curve To Points" node to rotate instances along edges. And i use "Not" boolean math node to invert selection, for remooving "Circles" near ends of the edges. And i have to use "Capture Atribute" node, because "Curve To Points" node prevent me to apply "Endpoit Selection" node directly to the "Instances On Points" node, because instances in this case are placed on the points but not on the curve.

• All this is possible in 3.0, too? Commented Jan 18, 2022 at 11:13
• Yes, there are no nodes specific to 3.1 Commented Jan 18, 2022 at 11:18

you can use this setup:

and keyframe the count, then you will get:

https://youtu.be/8Ftlse3fn2Y

Similar to Chris' answer, if you use Line set to End Points, objects will be instanced between the start and end points, rather than extend in the direction set in Offset.