#include <concepts>
#include <type_traits>
Go to the source code of this file.
|
| concept | LinkedPolygonClipping |
| | Require a circular vertex list, signed distances, interpolation, and recycling operations.
|
|
template<typename Polygon, typename Distance, typename Interpolate, typename Recycle>
requires LinkedPolygonClipping<Polygon, Distance, Interpolate, Recycle> |
| static void | ClipLinkedPolygonPlane (Polygon *pPolygon, Distance distance, Interpolate interpolate, Recycle recycle) |
| | Clip a circular vertex list to the non-negative side of a plane.
|
◆ ClipLinkedPolygonPlane()
template<typename Polygon, typename Distance, typename Interpolate, typename Recycle>
requires
LinkedPolygonClipping<Polygon, Distance, Interpolate, Recycle>
| void ClipLinkedPolygonPlane |
( |
Polygon * | pPolygon, |
|
|
Distance | distance, |
|
|
Interpolate | interpolate, |
|
|
Recycle | recycle ) |
|
inlinestatic |
Clip a circular vertex list to the non-negative side of a plane.
With patches enabled, failed interpolation discards the polygon and recycles every node.
- Template Parameters
-
| Polygon | A type satisfying LinkedPolygonClipping. |
| Distance | The distance callback type. |
| Interpolate | The interpolation callback type. |
| Recycle | The recycling callback type. |
- Parameters
-
| pPolygon | The circular polygon, updated in place. |
| distance | Compute a signed distance for a vertex. |
| interpolate | Allocate and interpolate an intersection vertex, or return null on failure. |
| recycle | Release an unused vertex. |