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 Triangle3d / Tetrahedron to render_primitives example #13504

Merged

Conversation

mweatherley
Copy link
Contributor

@mweatherley mweatherley commented May 25, 2024

Objective

This is just cleanup; we've got some more renderable gizmos and primitives now that hadn't been added to this example, so let's add them.

Solution

In the render_primitives example:

  • Added Triangle3d mesh
  • Wrote primitive_3d gizmo impl for Triangle3d and added the gizmo
  • Added Tetrahedron mesh and gizmo

I also made the 2d triangle bigger, since it was really small.

Testing

You can just run the example to see that everything turned out all right.

Other

Feel free to let me know if there are other primitives that I missed; I'm happy to tack them onto this PR.

@mweatherley mweatherley added C-Feature A new feature, making something new possible D-Trivial Nice and easy! A great choice to get started with Bevy A-Math Fundamental domain-agnostic mathematical operations A-Gizmos Visual editor and debug gizmos X-Uncontroversial This work is generally agreed upon S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 25, 2024
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 25, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 25, 2024
@alice-i-cecile alice-i-cecile removed this pull request from the merge queue due to a manual request May 25, 2024
@@ -626,7 +648,7 @@ fn draw_gizmos_3d(mut gizmos: Gizmos, state: Res<State<PrimitiveSelected>>, time
.resolution(resolution),
),
PrimitiveSelected::Ellipse => {}
Copy link
Member

Choose a reason for hiding this comment

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

It looks like Ellipse was missed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think ellipses are only missing from 3d gizmos and meshes, where the more natural thing would be ellipsoids (paralleling circle/sphere), which we don't have yet.

@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 3561467 May 25, 2024
35 checks passed
@mweatherley mweatherley deleted the update-render-primitives branch May 25, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Gizmos Visual editor and debug gizmos A-Math Fundamental domain-agnostic mathematical operations C-Feature A new feature, making something new possible D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants