Equipment to scan including a wide-angle lens and a light source , a surface or body opening . Light from the light source is projected to become a pattern in or near the distal portion of the wide-angle lens . Preferably , the pattern is within the focal plane of the wide-angle lens . Pattern defines a portion of a partial outer portion of the pattern intersects the opening surface of the body such as the ear canal , extends along the surface . And is configured to receive an image of the outer portion from the wide-angle lens , the processor is configured to determine the position of the outer part within the coordinate system using the focal plane of the known wide-angle lens . Outer portion has a plurality of reproduced by the processor , the three-dimensional shape is constructed . The three-dimensional shape , can be used to custom fit of a medical device such as a hearing aid diagnosis , or navigation , .光源と広角レンズを含む、体の開口部又は表面をスキャンする装置。光源からの光は、広角レンズの遠位部又は近傍にパターンとなって投射される。好ましくは、パターンは、広角レンズの焦点面の内部にある。パターンは、外耳道などの体の開口部表面と交差し、表面に沿って広がるパターンの部分的外側部の一部を画定する。プロセッサが、広角レンズから外側部の画像を受信し、広角レンズの既知の焦点面を用いて座標系内に外側部の位置を決定するように構成されている。複数の外側部がプロセッサによって再現され、三次元形状が構築される。この三次元形状は、診断、ナビゲーション、又は補聴器などの医療装置のカスタムフィットに利用できる。