Trait fj_kernel::builder::HalfEdgeBuilder
source · 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§
sourcefn with_back_vertex(self, back: impl Into<MaybePartial<Vertex>>) -> Self
fn with_back_vertex(self, back: impl Into<MaybePartial<Vertex>>) -> Self
Update the partial half-edge with the given back vertex
sourcefn with_front_vertex(self, front: impl Into<MaybePartial<Vertex>>) -> Self
fn with_front_vertex(self, front: impl Into<MaybePartial<Vertex>>) -> Self
Update the partial half-edge with the given front vertex
sourcefn update_as_circle_from_radius(
self,
radius: impl Into<Scalar>,
objects: &mut Service<Objects>
) -> Self
fn update_as_circle_from_radius(
self,
radius: impl Into<Scalar>,
objects: &mut Service<Objects>
) -> Self
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.
sourcefn update_as_line_segment_from_points(
self,
surface: Handle<Surface>,
points: [impl Into<Point<2>>; 2]
) -> Self
fn update_as_line_segment_from_points(
self,
surface: Handle<Surface>,
points: [impl Into<Point<2>>; 2]
) -> Self
Update partial half-edge as a line segment, from the given points
sourcefn update_as_line_segment(self) -> Self
fn update_as_line_segment(self) -> Self
Update partial half-edge as a line segment, reusing existing vertices
sourcefn infer_global_form(self) -> Self
fn infer_global_form(self) -> Self
Infer the global form of the partial half-edge