MCPcopy Create free account
hub / github.com/Notgnoshi/generative / triangles

Method triangles

generative/triangulation.rs:52–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

50 }
51
52 pub fn triangles(&self) -> impl Iterator<Item = geo::Triangle> + '_ {
53 self.triangle_points()
54 .map(|(a, b, c)| geo::Triangle::new(a, b, c))
55 }
56
57 pub fn lines(&self) -> impl Iterator<Item = geo::Line> + '_ {
58 self.triangle_points().flat_map(|(a, b, c)| {

Callers 1

Calls 1

triangle_pointsMethod · 0.80

Tested by 1