Make variable name more specific

This commit is contained in:
Hanno Braun 2024-06-19 21:24:23 +02:00
parent fcb87e70dd
commit b67b1b3ee7

View File

@ -169,13 +169,14 @@ mod tests {
cycle.update_half_edge( cycle.update_half_edge(
cycle.half_edges().nth_circular(0), cycle.half_edges().nth_circular(0),
|half_edge, core| { |half_edge, core| {
let mut geometry = *core let mut half_edge_geom = *core
.layers .layers
.geometry .geometry
.of_half_edge(half_edge); .of_half_edge(half_edge);
geometry.path = geometry.path.reverse(); half_edge_geom.path =
geometry.boundary = half_edge_geom.path.reverse();
geometry.boundary.reverse(); half_edge_geom.boundary =
half_edge_geom.boundary.reverse();
let half_edge = HalfEdge::new( let half_edge = HalfEdge::new(
half_edge.curve().clone(), half_edge.curve().clone(),
@ -183,7 +184,7 @@ mod tests {
) )
.insert(core) .insert(core)
.set_geometry( .set_geometry(
geometry, half_edge_geom,
&mut core.layers.geometry, &mut core.layers.geometry,
); );