You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_render/src/mesh/shape/sphere.rs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,12 @@ use wgpu::PrimitiveTopology;
10
10
/// An error when creating an icosphere [`Mesh`] from a [`SphereMesh`].
11
11
#[derive(Clone,Copy,Debug,Error)]
12
12
pubenumIcosphereError{
13
+
/// The icosphere has too many vertices.
13
14
#[error("Cannot create an icosphere of {subdivisions} subdivisions due to there being too many vertices being generated: {number_of_resulting_points}. (Limited to 65535 vertices or 79 subdivisions)")]
14
15
TooManyVertices{
16
+
/// The number of subdivisions used. 79 is the largest allowed value for a mesh to be generated.
15
17
subdivisions:usize,
18
+
/// The number of vertices generated. 65535 is the largest allowed value for a mesh to be generated.
0 commit comments