Skip to content

Conversation

@rsned
Copy link
Contributor

@rsned rsned commented May 10, 2025

kIntersectionSnapRadius is not defined anywhere. The comments from s2edge_crossings.h for kIntersectionMergeRadius indicate this is what it meant.

// This value can be used as the S2Builder snap_radius() to ensure that edges // that have been displaced by up to kIntersectionError are merged back // together again. For example this can happen when geometry is intersected // with a set of tiles and then unioned. It is equal to twice the // intersection error because input edges might have been displaced in // opposite directions.
constexpr S1Angle kIntersectionMergeRadius = 2 * kIntersectionError;

rsned added 2 commits May 10, 2025 13:13
kIntersectionSnapRadius is not defined anywhere.  The comments from s2edge_crossings.h for kIntersectionMergeRadius indicate this is what it meant.

// This value can be used as the S2Builder snap_radius() to ensure that edges
// that have been displaced by up to kIntersectionError are merged back
// together again.  For example this can happen when geometry is intersected
// with a set of tiles and then unioned.  It is equal to twice the
// intersection error because input edges might have been displaced in
// opposite directions.
constexpr S1Angle kIntersectionMergeRadius = 2 * kIntersectionError;
kIntersectionSnapRadius is not defined anywhere. The comments from s2edge_crossings.h for kIntersectionMergeRadius indicate this is what it meant.

// This value can be used as the S2Builder snap_radius() to ensure that edges // that have been displaced by up to kIntersectionError are merged back // together again. For example this can happen when geometry is intersected // with a set of tiles and then unioned. It is equal to twice the // intersection error because input edges might have been displaced in // opposite directions.
constexpr S1Angle kIntersectionMergeRadius = 2 * kIntersectionError;
@jmr jmr merged commit b1890eb into google:master May 12, 2025
1 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants