Elastic-plastic analysis of three dimensional structures