Surface-guided computing of arbitrary 3D surfaces and volumes by bidirectional mapping to lower dimensions