Applied Geometry for CAD Systems