This commit is contained in:
Hanno Braun 2022-06-28 15:54:03 +02:00
parent 07000b911f
commit 1d141c68e7
6 changed files with 6 additions and 18 deletions

View File

@ -39,9 +39,7 @@ impl ToShape for fj::Circle {
)) ))
.get(); .get();
let shape = validate(vec![face], config)?; validate(vec![face], config)
Ok(shape)
} }
fn bounding_volume(&self) -> Aabb<3> { fn bounding_volume(&self) -> Aabb<3> {

View File

@ -80,9 +80,7 @@ impl ToShape for fj::Difference2d {
)); ));
} }
let difference = validate(difference, config)?; validate(difference, config)
Ok(difference)
} }
fn bounding_volume(&self) -> Aabb<3> { fn bounding_volume(&self) -> Aabb<3> {

View File

@ -23,9 +23,7 @@ impl ToShape for fj::Group {
shape.extend(a.into_inner()); shape.extend(a.into_inner());
shape.extend(b.into_inner()); shape.extend(b.into_inner());
let shape = validate(shape, config)?; validate(shape, config)
Ok(shape)
} }
fn bounding_volume(&self) -> Aabb<3> { fn bounding_volume(&self) -> Aabb<3> {

View File

@ -27,9 +27,7 @@ impl ToShape for fj::Sketch {
.build() .build()
.get(); .get();
let shape = validate(vec![sketch], config)?; validate(vec![sketch], config)
Ok(shape)
} }
fn bounding_volume(&self) -> Aabb<3> { fn bounding_volume(&self) -> Aabb<3> {

View File

@ -21,9 +21,7 @@ impl ToShape for fj::Sweep {
let swept = sweep(shape.into_inner(), path, tolerance, color); let swept = sweep(shape.into_inner(), path, tolerance, color);
let swept = validate(swept, config)?; validate(swept, config)
Ok(swept)
} }
fn bounding_volume(&self) -> Aabb<3> { fn bounding_volume(&self) -> Aabb<3> {

View File

@ -20,9 +20,7 @@ impl ToShape for fj::Transform {
let faces = transform(&shape, &make_transform(self)); let faces = transform(&shape, &make_transform(self));
let shape = validate(faces, config)?; validate(faces, config)
Ok(shape)
} }
fn bounding_volume(&self) -> Aabb<3> { fn bounding_volume(&self) -> Aabb<3> {