How to obtain the geometric types of mesh in some regions of the imported GLB model from external sources

Hello everyone, I recently received a new requirement that requires an effect similar to the one shown below. When importing models in. glb file format externally, I need to use Raycaster to select a mesh in a certain area. How can I determine the geometry type of that mesh? Thank you!