Add a general node searching function for any geometric types

as titled
I didn't see the ```if```-clause for some reason. Thanks for the explanation.