mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-07 15:55:53 +00:00
Rename arguments
This commit is contained in:
parent
c1364d2ab9
commit
bdbed13583
@ -45,7 +45,7 @@ pub trait Shape {
|
||||
fn compute_brep(
|
||||
&self,
|
||||
config: &ValidationConfig,
|
||||
stores: &Objects,
|
||||
objects: &Objects,
|
||||
planes: &Planes,
|
||||
debug_info: &mut DebugInfo,
|
||||
) -> Result<Validated<Self::Brep>, ValidationError>;
|
||||
@ -63,21 +63,21 @@ impl Shape for fj::Shape {
|
||||
fn compute_brep(
|
||||
&self,
|
||||
config: &ValidationConfig,
|
||||
stores: &Objects,
|
||||
objects: &Objects,
|
||||
planes: &Planes,
|
||||
debug_info: &mut DebugInfo,
|
||||
) -> Result<Validated<Self::Brep>, ValidationError> {
|
||||
match self {
|
||||
Self::Shape2d(shape) => shape
|
||||
.compute_brep(config, stores, planes, debug_info)?
|
||||
.compute_brep(config, objects, planes, debug_info)?
|
||||
.into_inner()
|
||||
.into_faces()
|
||||
.validate_with_config(config),
|
||||
Self::Group(shape) => {
|
||||
shape.compute_brep(config, stores, planes, debug_info)
|
||||
shape.compute_brep(config, objects, planes, debug_info)
|
||||
}
|
||||
Self::Sweep(shape) => shape
|
||||
.compute_brep(config, stores, planes, debug_info)?
|
||||
.compute_brep(config, objects, planes, debug_info)?
|
||||
.into_inner()
|
||||
.into_shells()
|
||||
.map(|shell| shell.into_faces())
|
||||
@ -88,7 +88,7 @@ impl Shape for fj::Shape {
|
||||
.unwrap_or_default()
|
||||
.validate_with_config(config),
|
||||
Self::Transform(shape) => {
|
||||
shape.compute_brep(config, stores, planes, debug_info)
|
||||
shape.compute_brep(config, objects, planes, debug_info)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -109,16 +109,16 @@ impl Shape for fj::Shape2d {
|
||||
fn compute_brep(
|
||||
&self,
|
||||
config: &ValidationConfig,
|
||||
stores: &Objects,
|
||||
objects: &Objects,
|
||||
planes: &Planes,
|
||||
debug_info: &mut DebugInfo,
|
||||
) -> Result<Validated<Self::Brep>, ValidationError> {
|
||||
match self {
|
||||
Self::Difference(shape) => {
|
||||
shape.compute_brep(config, stores, planes, debug_info)
|
||||
shape.compute_brep(config, objects, planes, debug_info)
|
||||
}
|
||||
Self::Sketch(shape) => {
|
||||
shape.compute_brep(config, stores, planes, debug_info)
|
||||
shape.compute_brep(config, objects, planes, debug_info)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user