This is a generalization of problem A1 from the 2009 Putnam competition. The original problem asks for proof that any function $f:\mathbb{R}^2\rightarrow \mathbb{R}$ that sums to zero over the vertices of any square is necessarily zero everywhere. That is, if for any square with vertices $A$,$B$,$C$, and $D$,
\begin{equation}
f(A)+f(B)+f(C)+f(D)=0
\end{equation}
then $f(P)=0$ for any point $P\in \mathbb{R}^2.$
You can find the solution to this question here: Putnam 2009 A1 Points in a plane.
My question is whether this result can be generalized to any family of similar polygons. If $\Sigma_{i}f(A_i)=0$ whenever $A_1,...,A_n$ are the vertices of a polygon similar to a given polygon, does $f$ need to be $0$ everywhere?
This can be proven for regular $n$-gons by a method I describe in the comments. The proof for equilateral triangles amounts to adding the vertices of the three blue equilateral triangles in the picture and then subtracting the vertices of the the two red triangles leaving $3f(A)=0$ and, since $A$ is arbitrary, proving $f$ is zero everywhere. Essentially the same argument applies to any $n$-gons if you draw them evenly arranged around the center point. It doesn't matter if they overlap.
To visualize what subrosar probably meant with his "regular $n$-gon"-technique, I created the following picture for the case of the 7-gon
In his post, subrosar used the same technique for the triangle.
You create $n$ copies of the $n$-gone, so that they all meat in a single vertex, and you arrange them in a symmetric pattern (the black 7-gons in the picture). You then "cancel out" all vertices but the central one by inserting further concentric $n$-gons. This works similar for all regular $n$-gons, but it is best seen for odd $n$, as then no additional vertices coincide.
This technique can be generalized to polygons in which all vertices lie on a common circle, e.g. for this irregular 5-gon:
If $x$ is choosen to be the circumcenter of the polygon and all vertices of the polygon are on that circumcircle, we just obtain the same technique as above.
So, indeed, the task can be stated with any polygon (or if you want so, with any set of points of size at least three).