d954mas / defold-poly2tri

Poly2tri lua wrapper
10 stars 0 forks source link

Steiner points #1

Open hippocoder opened 4 months ago

hippocoder commented 4 months ago

Hi,

I wondered if you had support for steiner points? these are a list of points fed into poly2tri that subdvide it so there is better shading or an opportunity to do other things like vert colours better.

poly2tri has this feature natively but I wasn't able to find where to expose it.

Thanks for consideration.

d954mas commented 4 months ago

Can you please, share some c++ example.

I have no idea what is steiner points:)

I don't add them, but I think it would be easy to improve that

d954mas commented 4 months ago

I see addPoint, and addHole methods. I add only addHole.

You also need addPoint? It is not supported now https://github.com/jhasse/poly2tri/blob/13d64e75a84dd8f36673a7eaf022e8e9fdd1f88b/poly2tri/sweep/cdt.h#L76

hippocoder commented 4 months ago

Thanks for looking into it!