ofxClipper or other for fast polyline addition


I’m using ofxClipper to add polylines together. It works fine, but I’m doing it to 100s of polyline instances per frame, and so it takes a while (10s of seconds for 800 odd polylines)

Can anyone give any tips or advice on ways I could do this any faster, or do an enmasse addition?


Hmmm, from experimenting with ofxClipper, if I add some of the shapes together initially into medium sized chunks, and then combine those chunks into a larger shape, it seems faster than if I add all the shapes one by one.

Is there some optimal approach that I’m missing? i.e. a method to do all shapes adding at once?