I need a program or an algorithm that computes the intersection of a mesh and a boundary.
The mesh is structured orthogonal in nature and the boundary is a circle (for example). This will be used for solving Poisson's equation using finite difference technique with 5 point unequal spacing stencil.