mirror of https://github.com/hannobraun/Fornjot
Refactor
This commit is contained in:
parent
07000b911f
commit
1d141c68e7
|
@ -39,9 +39,7 @@ impl ToShape for fj::Circle {
|
|||
))
|
||||
.get();
|
||||
|
||||
let shape = validate(vec![face], config)?;
|
||||
|
||||
Ok(shape)
|
||||
validate(vec![face], config)
|
||||
}
|
||||
|
||||
fn bounding_volume(&self) -> Aabb<3> {
|
||||
|
|
|
@ -80,9 +80,7 @@ impl ToShape for fj::Difference2d {
|
|||
));
|
||||
}
|
||||
|
||||
let difference = validate(difference, config)?;
|
||||
|
||||
Ok(difference)
|
||||
validate(difference, config)
|
||||
}
|
||||
|
||||
fn bounding_volume(&self) -> Aabb<3> {
|
||||
|
|
|
@ -23,9 +23,7 @@ impl ToShape for fj::Group {
|
|||
shape.extend(a.into_inner());
|
||||
shape.extend(b.into_inner());
|
||||
|
||||
let shape = validate(shape, config)?;
|
||||
|
||||
Ok(shape)
|
||||
validate(shape, config)
|
||||
}
|
||||
|
||||
fn bounding_volume(&self) -> Aabb<3> {
|
||||
|
|
|
@ -27,9 +27,7 @@ impl ToShape for fj::Sketch {
|
|||
.build()
|
||||
.get();
|
||||
|
||||
let shape = validate(vec![sketch], config)?;
|
||||
|
||||
Ok(shape)
|
||||
validate(vec![sketch], config)
|
||||
}
|
||||
|
||||
fn bounding_volume(&self) -> Aabb<3> {
|
||||
|
|
|
@ -21,9 +21,7 @@ impl ToShape for fj::Sweep {
|
|||
|
||||
let swept = sweep(shape.into_inner(), path, tolerance, color);
|
||||
|
||||
let swept = validate(swept, config)?;
|
||||
|
||||
Ok(swept)
|
||||
validate(swept, config)
|
||||
}
|
||||
|
||||
fn bounding_volume(&self) -> Aabb<3> {
|
||||
|
|
|
@ -20,9 +20,7 @@ impl ToShape for fj::Transform {
|
|||
|
||||
let faces = transform(&shape, &make_transform(self));
|
||||
|
||||
let shape = validate(faces, config)?;
|
||||
|
||||
Ok(shape)
|
||||
validate(faces, config)
|
||||
}
|
||||
|
||||
fn bounding_volume(&self) -> Aabb<3> {
|
||||
|
|
Loading…
Reference in New Issue