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

Build a HalfEdge

Provided Methods§

source

fn unjoined( curve: Curve, boundary: [Point<1>; 2], objects: &mut Service<Objects> ) -> 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>, objects: &mut Service<Objects> ) -> 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>, objects: &mut Service<Objects>) -> HalfEdge

Create a circle

source

fn line_segment( points_surface: [impl Into<Point<2>>; 2], boundary: Option<[Point<1>; 2]>, objects: &mut Service<Objects> ) -> 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]>, objects: &mut Service<Objects> ) -> HalfEdge

Create a line segment from global points

Implementors§