Skip to content

Adds plane primitive generation#59

Merged
orange-cpp merged 3 commits intomainfrom
feature/new_primitives
Aug 29, 2025
Merged

Adds plane primitive generation#59
orange-cpp merged 3 commits intomainfrom
feature/new_primitives

Conversation

@orange-cpp
Copy link
Copy Markdown
Owner

Implements a function to generate a plane primitive from two vertices, a direction vector, and a size, returning an array of two triangles.

Implements a function to generate a plane primitive from two vertices, a direction vector, and a size, returning an array of two triangles.
Refactors the plane creation function to directly compute the triangle vertices, removing unnecessary intermediate variables. This results in more concise and readable code.
Corrects the order of vertices when constructing triangles
for the plane primitive, addressing a potential winding order
issue that could lead to incorrect surface normals and rendering.
@orange-cpp orange-cpp merged commit 89041e2 into main Aug 29, 2025
3 checks passed
@orange-cpp orange-cpp deleted the feature/new_primitives branch August 31, 2025 19:32
orange-cpp added a commit that referenced this pull request Feb 15, 2026
orange-cpp added a commit that referenced this pull request Feb 16, 2026
orange-cpp added a commit that referenced this pull request Feb 16, 2026
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.

1 participant