How to Calculate the tangent Plane of a Point on a 3D Tile Model

Hello everyone, I have a question to ask. I want to know how to calculate the tangent plane of the point selected by the mouse when passing through the 3DTile model. Just like the effect in the picture below, but I cannot find a method to obtain the normal vector or triangular patch. Does anyone know how to implement it? Please guide me.