Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@whuber The original and ultimate aim is to implement a finite element method which requires lines to be approximated into mesh (grid). Indeed, we are looking for an algorithm as generic as to consider any form of mesh (grid): irregular, regular, axes aligned or not etc.