Clustering has a meaning: optimization of angular similarity to detect 3D geometric anomalies in geological terrains