skin surface

Hi, I want to get the skin surface of the pipe fitting, as shown below. Is there a solution in open cascade? I would appreciate a code reference