Skip to main content

BuildHalfEdge

Trait BuildHalfEdge 

Source
pub trait BuildHalfEdge {
    // Provided methods
    fn unjoined(
        curve: Curve,
        boundary: [Point<1>; 2],
        services: &mut Services,
    ) -> HalfEdge { ... }
    fn arc(
        start: impl Into<Point<2>>,
        end: impl Into<Point<2>>,
        angle_rad: impl Into<Scalar>,
        services: &mut Services,
    ) -> HalfEdge { ... }
    fn circle(radius: impl Into<Scalar>, services: &mut Services) -> HalfEdge { ... }
    fn line_segment(
        points_surface: [impl Into<Point<2>>; 2],
        boundary: Option<[Point<1>; 2]>,
        services: &mut Services,
    ) -> HalfEdge { ... }
    fn line_segment_from_global_points(
        points_global: [impl Into<Point<3>>; 2],
        surface: &Surface,
        boundary: Option<[Point<1>; 2]>,
        services: &mut Services,
    ) -> HalfEdge { ... }
}
Expand description

Build a HalfEdge

Provided Methods§

Source

fn unjoined( curve: Curve, boundary: [Point<1>; 2], services: &mut Services, ) -> HalfEdge

Create a half-edge that is not joined to another

Source

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

Create an arc

§Panics

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

Source

fn circle(radius: impl Into<Scalar>, services: &mut Services) -> HalfEdge

Create a circle

Source

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

Create a line segment

Source

fn line_segment_from_global_points( points_global: [impl Into<Point<3>>; 2], surface: &Surface, boundary: Option<[Point<1>; 2]>, services: &mut Services, ) -> HalfEdge

Create a line segment from global points

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§