Pattern formation is theoretically investigated in the process of second-ha
rmonic generation in an externally driven plane-plane optical cavity which
uses phase matching of type II. It is shown that in this system a symmetry-
breaking polarization instability at the fundamental frequency can lead to
the spontaneous appearance of self-organized states, which can be periodic
or quasiperiodic in space. A weakly nonlinear analysis in the vicinity of t
he bifurcation point where these patterns emerge is developed by deriving b
oth a complex order parameter equation of the Swift-Hohenberg type close to
resonance, and a set of amplitude equations for the neutral modes far from
resonance. The amplitude equations reveal the existence of multistability
and pattern coexistence, and show that, besides the most common periodic pa
tterns such as rolls, squares, and hexagons, quasipatterns with an arbitrar
y orientational order can be selected by the nonlinearity in this system. N
umerical simulations of the original field equations are presented and the
main predictions of the weakly nonlinear analysis are compared with the num
erical results. [S1050-2947(99)08105-6].