pub trait HalfEdgeBuilder: Sized {
    fn with_back_vertex(self, back: impl Into<MaybePartial<Vertex>>) -> Self;
    fn with_front_vertex(self, front: impl Into<MaybePartial<Vertex>>) -> Self;
    fn update_as_circle_from_radius(
        self,
        radius: impl Into<Scalar>,
        objects: &mut Service<Objects>
    ) -> Self; fn update_as_line_segment_from_points(
        self,
        surface: Handle<Surface>,
        points: [impl Into<Point<2>>; 2]
    ) -> Self; fn update_as_line_segment(self) -> Self; fn infer_global_form(self) -> Self; }
Expand description

Builder API for PartialHalfEdge

Required Methods§

Update the partial half-edge with the given back vertex

Update the partial half-edge with the given front vertex

Update partial half-edge as a circle, from the given radius

Implementation Note

In principle, only the build method should take a reference to Objects. As of this writing, this method is the only one that deviates from that. I couldn’t think of a way to do it better.

Update partial half-edge as a line segment, from the given points

Update partial half-edge as a line segment, reusing existing vertices

Infer the global form of the partial half-edge

Implementors§