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

Function snap_geom_grid

generative/snap.rs:128–131  ·  view source on GitHub ↗
(mut geom: Geometry, tolerance: f64)

Source from the content-addressed store, hash-verified

126}
127
128fn snap_geom_grid(mut geom: Geometry, tolerance: f64) -> Geometry {
129 geom.map_coords_in_place_mut(|c| snap_coord_grid(c, tolerance));
130 filter_duplicate_vertices(geom)
131}
132
133fn filter_duplicate_vertices(geom: Geometry) -> Geometry {
134 match geom {

Callers 2

snap_geomsFunction · 0.85
snap_geomFunction · 0.85

Calls 3

snap_coord_gridFunction · 0.85

Tested by

no test coverage detected