Add a general node searching function for any geometric types

as titled
i can change it for you, though it's obvious for me from the function name.