In the triangle, say you consider the bottom right particle, the only forces acting on this particle are the extension force from the bottom left and top particle and the attractive force from the bottom left and top particle - since its in equilibrium these 2 forces must negate each other - in other words each has the same magnitude but opposite direction.
In the square, also consider the bottom right particle, the only forces acting on this particle are the extension force from the bottom left and top right particle and the attractive force from the bottom left and top right particle, BUT ALSO the diagonal force from the diagonally opposite particle.
If you split this diagonal force into its vertical and horizontal components, you get F_dsin(45) and F_dcos(45), since they are the same - this allows you to have symmetry along the diagonal so you only have to consider one "side" of the diagonal.
Hope that makes sense