refactored view_3D to reduce complexity and duplication
refactored view_3D to reduce complexity and duplication

VueOps/axlsx,kappiah/axlsx,romuloceccon/axlsx,mromulus/axlsx,woto/axlsx,raghavendra-prithvi/axlsx,alexanderfrankel/axlsx,bradstewart/axlsx,legitscript/axlsx,sh-ft/axlsx,sr-education/axlsx,Debiancc/axlsx,nilbus/axlsx,randym/axlsx,clarkcutler/axlsx,pedrogarrett/axlsx