mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-12 10:15:51 +00:00
Remove redundant constructor
This commit is contained in:
parent
d96a2bf16b
commit
c55649ead2
@ -78,7 +78,9 @@ fn main() -> anyhow::Result<()> {
|
|||||||
parameters.insert(key, value);
|
parameters.insert(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
let shape_processor = ShapeProcessor::new(args.tolerance)?;
|
let shape_processor = ShapeProcessor {
|
||||||
|
tolerance: args.tolerance,
|
||||||
|
};
|
||||||
|
|
||||||
if let Some(path) = args.export {
|
if let Some(path) = args.export {
|
||||||
let shape = model.load_once(¶meters)?;
|
let shape = model.load_once(¶meters)?;
|
||||||
@ -242,10 +244,6 @@ struct ShapeProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ShapeProcessor {
|
impl ShapeProcessor {
|
||||||
fn new(tolerance: Option<Tolerance>) -> anyhow::Result<Self> {
|
|
||||||
Ok(Self { tolerance })
|
|
||||||
}
|
|
||||||
|
|
||||||
fn process(&self, shape: &fj::Shape) -> ProcessedShape {
|
fn process(&self, shape: &fj::Shape) -> ProcessedShape {
|
||||||
let aabb = shape.bounding_volume();
|
let aabb = shape.bounding_volume();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user