Add a general node searching function for any geometric types

as titled
it worked now (022ab59)