An extension of the multivariate component-resolution method to three components