mirror of https://github.com/hannobraun/Fornjot
Add `HalfEdgeBuilder::infer_global_form`
This commit is contained in:
parent
5b0b4237cc
commit
118d2c01fe
|
@ -43,6 +43,9 @@ pub trait HalfEdgeBuilder: Sized {
|
|||
|
||||
/// Update partial half-edge as a line segment, reusing existing vertices
|
||||
fn update_as_line_segment(self) -> Self;
|
||||
|
||||
/// Infer the global form of the partial half-edge
|
||||
fn infer_global_form(self) -> Self;
|
||||
}
|
||||
|
||||
impl HalfEdgeBuilder for PartialHalfEdge {
|
||||
|
@ -197,6 +200,10 @@ impl HalfEdgeBuilder for PartialHalfEdge {
|
|||
|
||||
self.with_curve(curve).with_vertices([back, front])
|
||||
}
|
||||
|
||||
fn infer_global_form(self) -> Self {
|
||||
self.with_global_form(PartialGlobalEdge::default())
|
||||
}
|
||||
}
|
||||
|
||||
/// Builder API for [`PartialGlobalEdge`]
|
||||
|
|
Loading…
Reference in New Issue