Boost logo

Geometry :

Subject: [geometry] Snapping vertices to line segments during intersections?
From: Macumber, Daniel (Daniel.Macumber_at_[hidden])
Date: 2014-05-13 09:38:28


Does boost geometry have any functionality for snapping vertices to line segments during intersections? For example if I have a large surface with vertices:

LargeSurface << (0,0) << (10,0) << (10,10) << (0,10)

And a smaller surface with vertices:

SmallSurface << (0+eps, 4) << (10,4) << (10,6) << (0+eps, 6)

I would like to define a tolerance where if abs(eps) < tolerance, the vertices of SmallSurface are projected to the edges of the LargeSurface. Does that make sense? Is there any good approach for doing this?

Thanks a lot,
Dan



Geometry list run by mateusz at loskot.net