# A polygon uses the same vertex twice error in animation nodes

I am trying to recreate the animation nodes example from the online documentation that is here. https://animation-nodes-manual.readthedocs.io/en/latest/user_guide/nodes/mesh/operators/create_polygon_indices.html

I get an error at the combine mesh node (Which used to be the Combine Mesh Data Node) "A polygon uses the same Vertex twice"

I have tried fix it but couldn't. I would like to know why. Thanks. I am using animation nodes 2.1.7 and Blender 2.83.1

I have attached the Blend file.

• (number + 1) % number will always return 1, so you output the same integer twice to the vertices list on your first iteration. You also output the same number with 0 added to the third input of your vertices. What were you trying to achieve ? Jul 20 '20 at 7:47
• I was trying to get the example animation working that I copied from the first link Jul 20 '20 at 21:37
• Oh okay, I didn't see you were copying the docs. Glad you figured it out ! Jul 21 '20 at 6:47