icehuli / polypartition

Automatically exported from code.google.com/p/polypartition
0 stars 0 forks source link

Library Improvements #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a very helpful library, thank you.
However there are a few things that could be improved:
a) Return the triangulated surface either using an index buffer or iterators, 
not by copying the points.
b) Use iterators as function parameters to allow the user to also use other 
containers than std::list.
c) Maybe (I am unsure if this is possible), use template programming to accept 
several types of input points. There are many libraries which provide some sort 
of 2D vector (double or float), whose access patterns are very similar (e.g. 
vec.x or vec.x()). Maybe these can be generalized so that you don't need to do 
type conversions.

Original issue reported on code.google.com by clemens....@gmail.com on 16 Dec 2014 at 3:50