mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-12 05:48:27 +00:00
Prepare to clarify code
This commit is contained in:
parent
d7159c3ba3
commit
ecf4149ba5
@ -76,15 +76,16 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec<Handle<Face>> {
|
|||||||
let a = &bottom_half_edge.start;
|
let a = &bottom_half_edge.start;
|
||||||
let b = bottom_half_edge_end;
|
let b = bottom_half_edge_end;
|
||||||
let c = top_half_edge_end;
|
let c = top_half_edge_end;
|
||||||
|
let d = &top_a.start;
|
||||||
|
|
||||||
let surface = Handle::new(Surface {
|
let surface = Handle::new(Surface {
|
||||||
geometry: Box::new(Plane::from_points(
|
geometry: Box::new(Plane::from_points(
|
||||||
[a, b, &top_a.start].map(|vertex| vertex.point),
|
[a, b, d].map(|vertex| vertex.point),
|
||||||
)),
|
)),
|
||||||
});
|
});
|
||||||
let face = Face::new(
|
let face = Face::new(
|
||||||
surface,
|
surface,
|
||||||
[a, b, c, &top_a.start].map(|vertex| {
|
[a, b, c, d].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