File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,8 @@ where
449
449
/// let cube = Cube::new();
450
450
/// let (indices, vertices) = primitive::zip_vertices((
451
451
/// cube.polygons::<Position<E3>>(),
452
- /// cube.polygons::<Normal<E3>>().map_vertices(|normal| normal.into_inner()),
452
+ /// cube.polygons::<Normal<E3>>()
453
+ /// .map_vertices(|normal| normal.into_inner()),
453
454
/// ))
454
455
/// .triangulate()
455
456
/// .index_vertices::<Flat3, _>(HashIndexer::default());
@@ -689,7 +690,9 @@ where
689
690
/// # fn main() {
690
691
/// let cube = Cube::new();
691
692
/// let buffer = MeshBuffer3::<usize, _>::from_raw_buffers(
692
- /// cube.indexing_polygons::<Position>().triangulate().vertices(),
693
+ /// cube.indexing_polygons::<Position>()
694
+ /// .triangulate()
695
+ /// .vertices(),
693
696
/// cube.vertices::<Position<Point3<f32>>>(),
694
697
/// )
695
698
/// .unwrap();
Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ where
177
177
/// .polygons::<Position<Point3<N64>>>()
178
178
/// .collect::<MeshGraph<Point3<f64>>>();
179
179
/// let key = graph.faces().nth(0).unwrap().key();
180
- /// let face = graph.face_mut(key).unwrap().extrude(1.0).unwrap().into_ref();
180
+ /// let face = graph
181
+ /// .face_mut(key)
182
+ /// .unwrap()
183
+ /// .extrude(1.0)
184
+ /// .unwrap()
185
+ /// .into_ref();
181
186
///
182
187
/// // This would not be possible without conversion into an immutable view.
183
188
/// let _ = face.into_arc();
Original file line number Diff line number Diff line change @@ -197,9 +197,7 @@ pub trait Generator: Sized {
197
197
///
198
198
/// let cube = Cube::new();
199
199
///
200
- /// let positions = cube
201
- /// .vertices::<Position<E3>>()
202
- /// .collect::<Vec<_>>();
200
+ /// let positions = cube.vertices::<Position<E3>>().collect::<Vec<_>>();
203
201
/// let indices = cube
204
202
/// .indexing_polygons::<Position>()
205
203
/// .triangulate()
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ pub trait Topological:
122
122
/// Trigon::from([
123
123
/// E2::from_xy(-1.0, 0.0),
124
124
/// E2::from_xy(0.0, 1.0),
125
- /// E2::from_xy(1.0, 0.0)
125
+ /// E2::from_xy(1.0, 0.0),
126
126
/// ]),
127
127
/// 1.0,
128
128
/// );
@@ -890,8 +890,8 @@ impl<T> Topological for Polygon<T> {
890
890
/// cube.polygons::<Normal<E3>>(),
891
891
/// cube.polygons::<Plane>(),
892
892
/// ))
893
- /// .triangulate()
894
- /// .collect::<Vec<_>>();
893
+ /// .triangulate()
894
+ /// .collect::<Vec<_>>();
895
895
/// # }
896
896
/// ```
897
897
pub fn zip_vertices < T , U > (
You can’t perform that action at this time.
0 commit comments