Skip to content

Comments

Polygon#66

Open
lorenzoliuzzo wants to merge 4 commits intomasterfrom
polygon
Open

Polygon#66
lorenzoliuzzo wants to merge 4 commits intomasterfrom
polygon

Conversation

@lorenzoliuzzo
Copy link
Collaborator

@lorenzoliuzzo lorenzoliuzzo commented Jul 3, 2024

In this PR we aim to create a Polygon ShapeKind.
To check for any intersection between a Ray and the polygon we divide it in triangles and check the hit with them.

Thing to do:

  • Find the correct way to pass the vertices of each polygon.
  • Find how to safely and efficiently store the triangles.
  • Find how to avoid cycling over a polygon triangles, maybe using a little BVHTree (if convenient).
  • Update examples of Cornell box with Polygons as squared walls.

@lorenzoliuzzo lorenzoliuzzo linked an issue Jul 3, 2024 that may be closed by this pull request
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.

Polygons and polygonal meshes.

1 participant