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,
_: &mut DebugInfo,
) -> 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
// to be added here.
let edge = Edge::builder(&mut shape)
let edge = Edge::builder(&mut tmp)
.build_circle(Scalar::from_f64(self.radius()));
let cycle_local = Cycle {
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 face = shape
let surface = tmp.insert(Surface::xy_plane());
let face = tmp
.insert(Face::new(
surface,
vec![LocalForm::new(cycle_local, cycle_canonical)],