mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-18 06:06:09 +00:00
Clean up PartialCurve
use in as_line_segment
This commit is contained in:
parent
8e8ff94849
commit
d2c3c0fdb6
@ -5,7 +5,7 @@ use crate::{
|
|||||||
Curve, GlobalCurve, GlobalEdge, GlobalVertex, HalfEdge, Objects,
|
Curve, GlobalCurve, GlobalEdge, GlobalVertex, HalfEdge, Objects,
|
||||||
Surface, SurfaceVertex, Vertex,
|
Surface, SurfaceVertex, Vertex,
|
||||||
},
|
},
|
||||||
partial::{HasPartial, MaybePartial, PartialCurve},
|
partial::{HasPartial, MaybePartial},
|
||||||
storage::{Handle, HandleWrapper},
|
storage::{Handle, HandleWrapper},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -159,10 +159,8 @@ impl PartialHalfEdge {
|
|||||||
.expect("Can't infer line segment without surface position")
|
.expect("Can't infer line segment without surface position")
|
||||||
});
|
});
|
||||||
|
|
||||||
let curve = PartialCurve {
|
let curve = Handle::<Curve>::partial()
|
||||||
global_form: extract_global_curve(&self),
|
.with_global_form(extract_global_curve(&self))
|
||||||
..PartialCurve::default()
|
|
||||||
}
|
|
||||||
.with_surface(Some(surface))
|
.with_surface(Some(surface))
|
||||||
.as_line_from_points(points);
|
.as_line_from_points(points);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user