Trait fj_core::algorithms::triangulate::Triangulate
source · pub trait Triangulate: Sized {
// Required method
fn triangulate_into_mesh(self, mesh: &mut Mesh<Point<3>>, core: &mut Core);
// Provided method
fn triangulate(self, core: &mut Core) -> Mesh<Point<3>> { ... }
}
Expand description
Triangulate a shape
Required Methods§
sourcefn triangulate_into_mesh(self, mesh: &mut Mesh<Point<3>>, core: &mut Core)
fn triangulate_into_mesh(self, mesh: &mut Mesh<Point<3>>, core: &mut Core)
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§
sourcefn triangulate(self, core: &mut Core) -> Mesh<Point<3>>
fn triangulate(self, core: &mut Core) -> Mesh<Point<3>>
Triangulate the shape
Object Safety§
This trait is not object safe.