Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compute winding order of triangles #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check winding order of input triangles
1 participant