Shape determination for real curves and surfaces