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

Method hull

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

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn hull(&self) -> geo::Polygon {
68 let hull: Vec<geo::Coord> = self
69 .triangulation
70 .hull
71 .iter()
72 .map(|i| geo::coord! {x: self.points[*i].x, y: self.points[*i].y})
73 .collect();
74 let hull = geo::LineString::new(hull);
75 geo::Polygon::new(hull, vec![])
76 }
77
78 pub fn digraph(&self) -> GeometryGraph<Directed> {
79 let nodes = self.points.len();

Callers 1

Calls

no outgoing calls

Tested by 1