Redefine Scene struct
This commit is contained in:
parent
b53ea71eb0
commit
53f5c8bac5
3 changed files with 18 additions and 12 deletions
|
|
@ -205,7 +205,6 @@ impl Surface for TriangleMesh {
|
|||
}
|
||||
|
||||
fn smallest_sphere(points: Vec<&Point3<f32>>, boundary: Vec<&Point3<f32>>) -> (Point3<f32>, f32) {
|
||||
println!("{:?}\n{:?}\n", points, boundary);
|
||||
if points.len() == 0 || boundary.len() == 4 {
|
||||
match boundary.len() {
|
||||
0 => (Point3::new(0.0, 0.0, 0.0), 0.0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue