A Geometric Method for Robot Workspace Computation