Implemented local coordinate systems for planes and spheres.