wagyu icon indicating copy to clipboard operation
wagyu copied to clipboard

Feature request: another set of add_xxx functions

Open enduguXL opened this issue 9 years ago • 1 comments

Is it possible to have another set of add_xxx functions like:

bool add_ring (const void* vertices, int stride, int num_vertices, polygon_type p_type);

The main purpose of this is perf gain due to lack of data conversion. I think people that write real time applications (ex.: game developers) will be grateful for this.

enduguXL avatar Nov 21 '16 16:11 enduguXL

@enduguXL It would definitely be useful for people with other geometry concepts if they could use a more generalized geometry construct rather then specifically just https://github.com/mapbox/geometry.hpp/

I would not use a generic method such as you suggested, however, I would do something with templates similar to how boost geometry does their geometry constructs. I do not envision that have the time currently to do this anytime soon.

flippmoke avatar Nov 21 '16 16:11 flippmoke