I am writing a code that requires finding if a point is inside a specific geometry. The geometry may an n sided polygon (not necessarily convex) in 2 Dimensions or an STL geometry in 3 dimensions. I can actually write a search code using some algorithms available. But I am looking for a software library that can serve such purposes. It can be part of a bigger library. Any suggestion towards any such libraries or codes freely available would do. Thank You.