BuildHalfEdge

Trait BuildHalfEdge 

Source
pub trait BuildHalfEdge {
    // Provided methods
    fn unjoined(
        path: SurfacePath,
        boundary: impl Into<CurveBoundary<Point<1>>>,
        core: &mut Core,
    ) -> HalfEdge { ... }
    fn from_sibling(
        sibling: &Handle<HalfEdge>,
        start_vertex: Handle<Vertex>,
        core: &mut Core,
    ) -> Handle<HalfEdge> { ... }
    fn arc(
        start: impl Into<Point<2>>,
        end: impl Into<Point<2>>,
        angle_rad: impl Into<Scalar>,
        core: &mut Core,
    ) -> Handle<HalfEdge> { ... }
    fn circle(
        center: impl Into<Point<2>>,
        radius: impl Into<Scalar>,
        core: &mut Core,
    ) -> Handle<HalfEdge> { ... }
    fn line_segment(
        points_surface: [impl Into<Point<2>>; 2],
        boundary: Option<[Point<1>; 2]>,
        core: &mut Core,
    ) -> Handle<HalfEdge> { ... }
}
Expand description

Build a HalfEdge

See module-level documentation for context.

Provided Methods§

Source

fn unjoined( path: SurfacePath, boundary: impl Into<CurveBoundary<Point<1>>>, core: &mut Core, ) -> HalfEdge

Create a half-edge that is not joined to a sibling

Source

fn from_sibling( sibling: &Handle<HalfEdge>, start_vertex: Handle<Vertex>, core: &mut Core, ) -> Handle<HalfEdge>

Create a half-edge from its sibling

Source

fn arc( start: impl Into<Point<2>>, end: impl Into<Point<2>>, angle_rad: impl Into<Scalar>, core: &mut Core, ) -> Handle<HalfEdge>

Create an arc

§Panics

Panics if the given angle is not within the range (-2pi, 2pi) radians.

Source

fn circle( center: impl Into<Point<2>>, radius: impl Into<Scalar>, core: &mut Core, ) -> Handle<HalfEdge>

Create a circle

Source

fn line_segment( points_surface: [impl Into<Point<2>>; 2], boundary: Option<[Point<1>; 2]>, core: &mut Core, ) -> Handle<HalfEdge>

Create a line segment

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§