-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Add RegularPolygon and Circle meshes #3730
Closed
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1e2f715
Add RegularPolygon and Circle
rparrett fb6f09f
Add example to readme
rparrett 2c137d7
Use usize for sides for consistency
rparrett 03c7cc7
Preallocate vecs
rparrett 08e366e
Minor cleanup
rparrett 63fa48c
Generate mesh with fewer triangles
rparrett c6e7923
Add missing doc string
rparrett 10b3f0f
Consolidate examples
rparrett 630d9c5
Use new mesh attribute api
rparrett 8dc3c72
Use new default shorthand
rparrett 216b769
Update crates/bevy_render/src/mesh/shape/regular_polygon.rs
rparrett 9cc7852
Update crates/bevy_render/src/mesh/shape/regular_polygon.rs
rparrett ea920b8
Update crates/bevy_render/src/mesh/shape/regular_polygon.rs
rparrett 62ed3d4
Update crates/bevy_render/src/mesh/shape/regular_polygon.rs
rparrett f9d62b7
Optimize by calculating sin and cos simultaneously
rparrett 4b68753
Add constructors for RegularPolygon and Circle
rparrett 689c074
Fix unnecessary return
rparrett 994c252
Remove accidental newline
rparrett 880d4a2
Fix doc comment
rparrett d774e70
Vertices terminology seems more correct than subdivisions
rparrett 40b925e
Fix extra garbage triangle
rparrett b02089e
Minor optimization
rparrett 1e1ba1f
Friendlier panic when sides <= 2
rparrett 0a76d2a
Slightly less ambiguous variable names
rparrett e0b04a6
Fix larger allocation for indices than necessary
rparrett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix doc comment
- Loading branch information
commit 880d4a2c15be582df7778d3efe854884cb6871c3
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a hexagon the default? Does it make sense to provide a default?