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
# Objective
- Plane subdivision was removed without providing an alternative
## Solution
- Add subdivision to the PlaneMeshBuilder
---
## Migration Guide
If you were using `Plane` `subdivisions`, you now need to use
`Plane3d::default().mesh().subdivisions(10)`
fixes#13258
Copy file name to clipboardExpand all lines: crates/bevy_render/src/mesh/primitives/dim3/plane.rs
+66-11Lines changed: 66 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,16 @@ use crate::{
11
11
pubstructPlaneMeshBuilder{
12
12
/// The [`Plane3d`] shape.
13
13
pubplane:Plane3d,
14
+
/// The number of subdivisions in the mesh.
15
+
///
16
+
/// 0 - is the original plane geometry, the 4 points in the XZ plane.
17
+
///
18
+
/// 1 - is split by 1 line in the middle of the plane on both the X axis and the Z axis, resulting in a plane with 4 quads / 8 triangles.
19
+
///
20
+
/// 2 - is a plane split by 2 lines on both the X and Z axes, subdividing the plane into 3 equal sections along each axis, resulting in a plane with 9 quads / 18 triangles.
0 commit comments