Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add meshing for ConicalFrustum #11819

Merged
merged 2 commits into from
May 25, 2024

Conversation

Jondolf
Copy link
Contributor

@Jondolf Jondolf commented Feb 11, 2024

Objective

The ConicalFrustum primitive should support meshing.

Solution

Implement meshing for the ConicalFrustum primitive. The implementation is nearly identical to Cylinder meshing, but supports two radii.

The default conical frustum is equivalent to a cone with a height of 1 and a radius of 0.5, truncated at half-height.

kuva

@Jondolf Jondolf added C-Enhancement A new feature A-Rendering Drawing game state to the screen A-Math Fundamental domain-agnostic mathematical operations labels Feb 11, 2024
Copy link
Contributor

@lynn-lumen lynn-lumen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but couldn't the cylinder mesh builder be replaced by this?
They seem to have the same builder methods and the conical frustum is just a generalisation of the cylinder. The types might be kind of confusing, but at least internally, they could share an implementation.

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label May 25, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 25, 2024
Merged via the queue into bevyengine:main with commit 383314e May 25, 2024
28 checks passed
@Jondolf Jondolf deleted the conical-frustum-meshing branch May 25, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Math Fundamental domain-agnostic mathematical operations A-Rendering Drawing game state to the screen C-Enhancement A new feature S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants