An angular approximation of the transport equation based on a collocation technique results as an intermediary step in the search for a set of modified discrete ordinates (DO) equations, which eliminates ray effects. The collocation equations are similar to the DO ones with the only difference being that the scattering term is evaluated with a full Galerkin matrix instead of with the DO quadrature formula. The Galerkin quadrature offers the advantage of a better treatment of scattering anisotropy and a correct evaluation of the singular scattering associated to multigroup transport correction. However, the construction of the Galerkin matrix requires the existence of two equivalent bases in a final-dimensional representation space: an interpolatory basis to retain the collocative nature of the DO approximation and a spherical harmonic basis to represent scattering terms accurately. Up to now, the relationship between these two bases was heuristic, stemming from trial and errors. In this work we analyze the symmetries of the angular direction set and also use the factorized form of the spherical harmonics to derive a set of necessary conditions for the construction of the spherical harmonic basis. These conditions give an analytical explanation to previous heuristic techniques and fully extend them to three-dimensional geometries. We have adopted an assembling method for which extensive numerical tests show that the necessary conditions permit the construction of the Galerkin quadrature from level-symmetric, triangular, and product direction sets up to a high number of polar cosines. Our results can also be generalized to calculate Galerkin matrices for nonregular quadrature formulas. However, these necessary conditions are not sufficient, and we give numerical proof of this fact using different assembling techniques. Our assembling technique allows for the construction of Galerkin matrices from triangular direction sets (for which the DO quadrature is notoriously poor), which have positive weights for up to 44 polar cosines. In three dimensions this quadrature has 2024 angular directions and is able to exactly integrate scattering of anisotropy order 24.