Update variable name

This commit is contained in:
Hanno Braun 2022-06-28 15:40:51 +02:00
parent 8b1ecfe95f
commit 07000b911f
1 changed files with 5 additions and 5 deletions

View File

@ -16,21 +16,21 @@ impl ToShape for fj::Circle {
_: Tolerance, _: Tolerance,
_: &mut DebugInfo, _: &mut DebugInfo,
) -> Result<Validated<Vec<Face>>, ValidationError> { ) -> Result<Validated<Vec<Face>>, ValidationError> {
let mut shape = Shape::new(); let mut tmp = Shape::new();
// Circles have just a single round edge with no vertices. So none need // Circles have just a single round edge with no vertices. So none need
// to be added here. // to be added here.
let edge = Edge::builder(&mut shape) let edge = Edge::builder(&mut tmp)
.build_circle(Scalar::from_f64(self.radius())); .build_circle(Scalar::from_f64(self.radius()));
let cycle_local = Cycle { let cycle_local = Cycle {
edges: vec![edge.clone()], edges: vec![edge.clone()],
}; };
let cycle_canonical = shape.insert(Cycle::new(vec![edge.canonical()])); let cycle_canonical = tmp.insert(Cycle::new(vec![edge.canonical()]));
let surface = shape.insert(Surface::xy_plane()); let surface = tmp.insert(Surface::xy_plane());
let face = shape let face = tmp
.insert(Face::new( .insert(Face::new(
surface, surface,
vec![LocalForm::new(cycle_local, cycle_canonical)], vec![LocalForm::new(cycle_local, cycle_canonical)],