Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include | #include "CompGeom/Delaunay2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Public/Curve/GeneralPolygon2.h |
Syntax
template<typename T>
class TGeneralPolygon2
Remarks
TGeneralPolygon2 is a 2D polygon with holes
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bOuterIsCW | If true, Outer polygon winding is clockwise | |
| TArray< TPolygon2< T > > | Holes | The list of Holes in the polygon | |
| TPolygon2< T > | Outer | The Outer boundary of the polygon |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TGeneralPolygon2
(
const TPolygon2< T >& ToSetOuter |
Construct a general polygon with the given polygon as boundary |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| TAxisAlignedBox2< T > | Bounds () |
||
| void | ClearHoles () |
||
| bool | |||
| bool | |||
| double | DistanceSquared
(
TVector2< T > p, |
This should be more efficient when there are Holes... | |
| void | FilterHoles
(
TFunctionRef< bool(const TPolygon2< T >&)> RemoveHolePredicateFunc |
Remove any Hole polygons for which RemoveHolePredicateFunc(Hole) returns true | |
| const TArray< TPolygon2< T > > & | GetHoles () |
||
| TVector2< T > | GetNormal
(
int iSegment, |
||
| const TPolygon2< T > & | GetOuter () |
||
| TVector2< T > | GetSegmentPoint
(
int iSegment, |
||
| bool | HasHoles () |
||
| double | |||
| bool | Intersects
(
TPolygon2< T > Poly |
||
| bool | |||
| double | Perimeter () |
||
| void | Reverse () |
||
| void | |||
| TSegment2< T > | Segment
(
int iSegment, |
||
| void | |||
| void | SetOuterWithOrientation
(
const TPolygon2< T >& ToSetOuter, |
||
| double | SignedArea () |
||
| void | Simplify
(
double ClusterTol, |
||
| void | |||
| void | |||
| void | VtxNormalOffset
(
T OffsetDistance, |
Offset each polygon by the given Distance along vertex "normal" direction (ie for positive offset, outer polygon grows and holes shrink) |