A class for polygon–polygon intersection in 2d space.
#include <dumux/geometry/geometryintersection.hh>
|
template<class P = Policy, std::enable_if_t< P::dimIntersection==2, int > = 0> |
static bool | intersection (const Geometry1 &geo1, const Geometry2 &geo2, Intersection &intersection) |
| Colliding two polygons.
|
|
template<class P = Policy, std::enable_if_t< P::dimIntersection==1, int > = 0> |
static bool | intersection (const Geometry1 &geo1, const Geometry2 &geo2, Intersection &intersection) |
| Colliding two polygons.
|
|
template<class P = Policy, std::enable_if_t< P::dimIntersection==0, int > = 0> |
static bool | intersection (const Geometry1 &geo1, const Geometry2 &geo2, Intersection &intersection) |
| Colliding two polygons.
|
|
static bool | intersection (const Geometry1 &geo1, const Geometry2 &geo2, Intersection &intersection) |
| Determine if the two geometries intersect and compute the intersection geometry.
|
|
◆ ctype [1/2]
◆ ctype [2/2]
template<class Geometry1, class Geometry2, class Policy>
◆ Intersection [1/2]
◆ Intersection [2/2]
template<class Geometry1, class Geometry2, class Policy>
◆ Point [1/2]
◆ Point [2/2]
template<class Geometry1, class Geometry2, class Policy>
◆ intersection() [1/4]
◆ intersection() [2/4]
template<class Geometry1, class Geometry2, class Policy>
template<class P = Policy, std::enable_if_t< P::dimIntersection==2, int > = 0>
- Note
- First we find the vertex candidates for the intersection region as follows: Add polygon vertices that are inside the other polygon Add intersections of polygon edges Remove duplicate points from the list Compute the convex hull polygon Return a triangulation of that polygon as intersection
- Parameters
-
geo1/geo2 | The geometries to intersect |
intersection | Container to store the corner points of the polygon (as convex hull) |
- Note
- This overload is used when polygon like intersections are seeked
◆ intersection() [3/4]
template<class Geometry1, class Geometry2, class Policy>
template<class P = Policy, std::enable_if_t< P::dimIntersection==1, int > = 0>
- Parameters
-
geo1/geo2 | The geometries to intersect |
intersection | Container to store the corners of intersection segment |
- Note
- this overload is used when segment-like intersections are seeked
◆ intersection() [4/4]
template<class Geometry1, class Geometry2, class Policy>
template<class P = Policy, std::enable_if_t< P::dimIntersection==0, int > = 0>
- Parameters
-
geo1/geo2 | The geometries to intersect |
intersection | The intersection point |
- Note
- this overload is used when point-like intersections are seeked
The documentation for this class was generated from the following file: