Triangulate

Trait Triangulate 

Source
pub trait Triangulate: Sized {
    // Required method
    fn triangulate_into_mesh(self, mesh: &mut Mesh<Point<3>>);

    // Provided method
    fn triangulate(self) -> Mesh<Point<3>> { ... }
}
Expand description

Triangulate a shape

Required Methods§

Source

fn triangulate_into_mesh(self, mesh: &mut Mesh<Point<3>>)

Triangulate a partial shape into the provided mesh

This is a low-level method, intended for implementation of Triangulate. Most callers should prefer Triangulate::triangulate.

Provided Methods§

Source

fn triangulate(self) -> Mesh<Point<3>>

Triangulate the shape

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.

Implementations on Foreign Types§

Source§

impl<T> Triangulate for (T, Tolerance)

Source§

fn triangulate_into_mesh(self, mesh: &mut Mesh<Point<3>>)

Implementors§