File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ pub fn found_intersections(
28
28
}
29
29
}
30
30
println ! ( "{intersections:?}" ) ;
31
- Ok ( Intersections { intersections } )
31
+ Ok ( Intersections {
32
+ inner : intersections,
33
+ } )
32
34
}
33
35
34
36
pub fn load_from_file ( model : String ) -> Result < Obj , Box < dyn std:: error:: Error > > {
@@ -91,7 +93,7 @@ pub fn write_to_file(
91
93
92
94
let mut current_vertices_count = obj. vertices . len ( ) ;
93
95
94
- intersections. intersections . iter ( ) . for_each ( |intersection| {
96
+ intersections. inner . iter ( ) . for_each ( |intersection| {
95
97
// Calculate the four vertices of the tetrahedron.
96
98
let tetrahedron: Tetrahedron = intersection. into ( ) ;
97
99
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use cgmath::Point3;
2
2
3
3
#[ derive( Debug ) ]
4
4
pub struct Intersections {
5
- pub intersections : Vec < Intersection > ,
5
+ pub inner : Vec < Intersection > ,
6
6
}
7
7
8
8
#[ derive( Debug ) ]
You can’t perform that action at this time.
0 commit comments