mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-23 15:45:50 +00:00
Refactor
This commit is contained in:
parent
c7fdf22bf7
commit
ab3ee7bf0d
@ -89,7 +89,7 @@ impl<'r> EdgeBuilder<'r> {
|
||||
[a, b]: [Vertex; 2],
|
||||
) -> Handle<Edge<3>> {
|
||||
let curve = {
|
||||
let points = [&a, &b].map(|vertex| vertex.point);
|
||||
let points = [a, b].map(|vertex| vertex.point);
|
||||
let curve = Curve::Line(Line::from_points(points));
|
||||
self.shape.get_handle_or_insert(curve)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user