mirror of https://github.com/hannobraun/Fornjot
Update variable name
This commit is contained in:
parent
8b1ecfe95f
commit
07000b911f
|
@ -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)],
|
||||
|
|
Loading…
Reference in New Issue