Add a general node searching function for any geometric types

as titled