Skip to content

Conversation

@kylebarron
Copy link
Owner

@kylebarron kylebarron commented Jun 11, 2020

Closes #13

It's "pretty" fast: I can compute the winding order of 72,500 triangles in 4.5ms.

It turns out that (py)Martini actually does create triangles exclusively in counter-clockwise winding order, but that its origin is in the top-left, as in a PNG. When you use flip_y=True from rescale_positions in pymartini's utils, all triangles are counter clockwise relative to the standard bottom-left origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check winding order of input triangles

2 participants