Navigation
API > API/Runtime > API/Runtime/GeometryCore
TGeneralPolygon2 is a 2D polygon with holes
| Name | TGeneralPolygon2 |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #include "CompGeom/Delaunay2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Public/Curve/GeneralPolygon2.h |
Syntax
template<typename T>
class TGeneralPolygon2
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Curve/GeneralPolygon2.h | |||
TGeneralPolygon2
(
const TPolygon2< T >& ToSetOuter |
Construct a general polygon with the given polygon as boundary | Curve/GeneralPolygon2.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddHole
(
TPolygon2< T > Hole, |
Curve/GeneralPolygon2.h | ||
TAxisAlignedBox2< T > Bounds() |
Curve/GeneralPolygon2.h | ||
void ClearHoles() |
Curve/GeneralPolygon2.h | ||
| Curve/GeneralPolygon2.h | |||
| Curve/GeneralPolygon2.h | |||
double DistanceSquared
(
TVector2< T > p, |
This should be more efficient when there are Holes... | Curve/GeneralPolygon2.h | |
void FilterHoles
(
TFunctionRef< bool(const TPolygon2< T >&)> RemoveHolePredicateFunc |
Remove any Hole polygons for which RemoveHolePredicateFunc(Hole) returns true | Curve/GeneralPolygon2.h | |
| Curve/GeneralPolygon2.h | |||
TVector2< T > GetNormal
(
int iSegment, |
Curve/GeneralPolygon2.h | ||
const TPolygon2< T > & GetOuter() |
Curve/GeneralPolygon2.h | ||
TVector2< T > GetSegmentPoint
(
int iSegment, |
Curve/GeneralPolygon2.h | ||
bool HasHoles() |
Curve/GeneralPolygon2.h | ||
double HoleUnsignedArea() |
Curve/GeneralPolygon2.h | ||
bool Intersects
(
TPolygon2< T > Poly |
Curve/GeneralPolygon2.h | ||
bool OuterIsClockwise() |
Curve/GeneralPolygon2.h | ||
double Perimeter() |
Curve/GeneralPolygon2.h | ||
void Reverse() |
Curve/GeneralPolygon2.h | ||
| Curve/GeneralPolygon2.h | |||
TSegment2< T > Segment
(
int iSegment, |
Curve/GeneralPolygon2.h | ||
void SetOuter
(
const TPolygon2< T >& ToSetOuter |
Curve/GeneralPolygon2.h | ||
void SetOuterWithOrientation
(
const TPolygon2< T >& ToSetOuter, |
Curve/GeneralPolygon2.h | ||
double SignedArea() |
Curve/GeneralPolygon2.h | ||
void Simplify
(
double ClusterTol, |
Curve/GeneralPolygon2.h | ||
| Curve/GeneralPolygon2.h | |||
void Translate
(
TVector2< T > translate |
Curve/GeneralPolygon2.h | ||
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) | Curve/GeneralPolygon2.h |