mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 02:48:27 +00:00
Group related code
This commit is contained in:
parent
3b60d42412
commit
27b79c9740
@ -55,9 +55,6 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec<Handle<Face>> {
|
||||
.half_edges_with_end_vertex()
|
||||
.zip(top.half_edges_with_end_vertex())
|
||||
.map(|((bottom_half_edge, bottom_b), (top_a, top_b))| {
|
||||
let a = &bottom_half_edge.start;
|
||||
let b = bottom_b;
|
||||
|
||||
let is_internal =
|
||||
match [bottom_half_edge.is_internal, top_a.is_internal] {
|
||||
[true, true] => true,
|
||||
@ -70,6 +67,9 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec<Handle<Face>> {
|
||||
}
|
||||
};
|
||||
|
||||
let a = &bottom_half_edge.start;
|
||||
let b = bottom_b;
|
||||
|
||||
let surface = Handle::new(Surface {
|
||||
geometry: Box::new(Plane::from_points(
|
||||
[a, b, &top_a.start].map(|vertex| vertex.point),
|
||||
|
Loading…
Reference in New Issue
Block a user