Trait fj_kernel::builder::HalfEdgeBuilder
source · pub trait HalfEdgeBuilder: Sized {
fn update_as_circle_from_radius(
self,
radius: impl Into<Scalar>,
objects: &Objects
) -> Result<Self, ValidationError>;
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;
}Expand description
Builder API for PartialHalfEdge
Required Methods
sourcefn update_as_circle_from_radius(
self,
radius: impl Into<Scalar>,
objects: &Objects
) -> Result<Self, ValidationError>
fn update_as_circle_from_radius(
self,
radius: impl Into<Scalar>,
objects: &Objects
) -> Result<Self, ValidationError>
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