mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-12 13:58:28 +00:00
Make name of variable more explicit
This commit is contained in:
parent
158694aced
commit
d112ce67ab
@ -54,8 +54,8 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec<Handle<Face>> {
|
|||||||
bottom
|
bottom
|
||||||
.half_edges_with_end_vertex()
|
.half_edges_with_end_vertex()
|
||||||
.zip(top.half_edges_with_end_vertex())
|
.zip(top.half_edges_with_end_vertex())
|
||||||
.map(|((a, b), (d, c))| {
|
.map(|((bottom_a, b), (d, c))| {
|
||||||
let is_internal = match [a.is_internal, d.is_internal] {
|
let is_internal = match [bottom_a.is_internal, d.is_internal] {
|
||||||
[true, true] => true,
|
[true, true] => true,
|
||||||
[false, false] => false,
|
[false, false] => false,
|
||||||
_ => {
|
_ => {
|
||||||
@ -68,12 +68,12 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec<Handle<Face>> {
|
|||||||
|
|
||||||
let surface = Handle::new(Surface {
|
let surface = Handle::new(Surface {
|
||||||
geometry: Box::new(Plane::from_points(
|
geometry: Box::new(Plane::from_points(
|
||||||
[&a.start, b, c].map(|vertex| vertex.point),
|
[&bottom_a.start, b, c].map(|vertex| vertex.point),
|
||||||
)),
|
)),
|
||||||
});
|
});
|
||||||
let face = Face::new(
|
let face = Face::new(
|
||||||
surface,
|
surface,
|
||||||
[&a.start, b, c, &d.start].map(|vertex| {
|
[&bottom_a.start, b, c, &d.start].map(|vertex| {
|
||||||
Handle::new(HalfEdge {
|
Handle::new(HalfEdge {
|
||||||
curve: Handle::new(Curve {}),
|
curve: Handle::new(Curve {}),
|
||||||
start: vertex.clone(),
|
start: vertex.clone(),
|
||||||
|
Loading…
Reference in New Issue
Block a user