The electronic structures of (Formula presented) and (Formula presented) clusters of cuboctahedral and icosahedral symmetries are analyzed by the self-consistent spin-polarized density-functional scheme using the norm-conserving pseudopotential in the linear combination of atomic orbitals method. The electronic structure is discussed in relation to the shell structure of the giant atom. The stable atomic structure is discussed, considering the effects of the generalized gradient approximation of the exchange-correlation potential, the spin-orbit splitting and the Jahn-Teller effect. The spin-orbit coupling effect depends on the symmetry of the whole cluster. It is the largest of these effects for Pt and it is as large as the spin polarization effect for Pd. The electronic structure of Pd and Pt clusters of 13 atoms is comprehended as a complex of the shell structure and the localized Pd-(Formula presented) or Pt-(Formula presented) orbitals. The Jahn-Teller effect seems to be small to keep the shell structure. For both Pd and Pt metals the cuboctahedron clusters are more stable and have small spin polarization, (Formula presented) for the Pd cluster and (Formula presented) for the Pt cluster. {\textcopyright} 1998 The American Physical Society.