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();
|
.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> {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Reference in New Issue