Update variable name

This commit is contained in:
Hanno Braun 2022-06-28 15:54:31 +02:00
parent 1d141c68e7
commit 85c944e195
1 changed files with 2 additions and 2 deletions

View File

@ -16,12 +16,12 @@ impl ToShape for fj::Sketch {
_: 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();
let surface = Surface::xy_plane(); let surface = Surface::xy_plane();
let points = self.to_points().into_iter().map(Point::from); let points = self.to_points().into_iter().map(Point::from);
let sketch = Face::builder(surface, &mut shape) let sketch = Face::builder(surface, &mut tmp)
.with_exterior_polygon(points) .with_exterior_polygon(points)
.with_color(self.color()) .with_color(self.color())
.build() .build()