Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Polygon2.h |
Include |
#include "Polygon2.h" |
template<typename T>
class TPolygon2
TPolygon2 is a 2D polygon represented as a list of Vertices.
Name | Description | |
---|---|---|
|
TPolygon2() |
|
|
TPolygon2 ( |
Construct polygon that is a copy of another polygon |
|
TPolygon2 |
Construct polygon with given list of vertices |
|
TPolygon2 ( |
Construct polygon with given indices into a vertex array |
Name | Description | ||
---|---|---|---|
|
AppendVertex ( |
Add a vertex to the Polygon |
|
|
AppendVertices |
Add a list of Vertices to the Polygon |
|
|
T |
Area() |
|
|
T |
AverageEdgeLength() |
|
|
TAxisAligned... |
Bounds() |
|
|
Chamfer ( |
Chamfer each vertex corner of the Polygon |
|
|
Contains ( |
||
|
Contains ( |
||
|
Contains ( |
||
|
T |
DistanceSquared ( |
Calculate the squared distance from a point to the polygon |
|
T |
DistanceSquared ( |
Calculate the squared distance from a point to the polygon |
|
FindIntersections |
Find all the points where an edge of the Polygon intersects an edge of the OtherPolygon |
|
|
FVector2< T ... |
GetNormal ( |
|
|
FVector2< T ... |
GetNormal ( |
Get the normal vector at a vertex of the polygon, which is perpendicular to GetTangent() Points "inward" for a Clockwise Polygon, and outward for CounterClockwise |
|
FVector2< T ... |
GetNormal_FaceAvg ( |
Construct a normal at a vertex of the Polygon by averaging the adjacent face normals. |
|
FVector2< T ... |
GetSegmentPoint ( |
|
|
FVector2< T ... |
GetSegmentPointUnitParam ( |
|
|
FVector2< T ... |
GetTangent ( |
Get the tangent vector at a vertex of the polygon, which is the normalized vector from the previous vertex to the next vertex |
|
int |
GetTimestamp() |
|
|
const TArray... |
GetVertices() |
|
|
Intersects ( |
||
|
Intersects ( |
||
|
IsClockwise() |
||
|
TPolygon2< T... |
MakeCircle ( |
Construct a circular polygon |
|
TPolygon2< T... |
MakeRectangle ( |
Construct a four-vertex rectangle polygon |
|
TPolygon2< T... |
MakeRoundedRectangle ( |
Construct a rounded rectangle polygon |
|
NeighbourPoints |
Get the previous and next vertex positions for a given vertex of the Polygon |
|
|
NeighbourVectors |
Get the vectors from a given vertex to the previous and next Vertices, optionally normalized |
|
|
T |
OpeningAngleDeg ( |
|
|
Overlaps ( |
Check for polygon overlap, aka solid intersection. |
|
|
T |
Perimeter() |
|
|
PolyOffset ( |
Offset polygon by fixed distance, by offsetting and intersecting edges. |
|
|
RemoveVertex ( |
Remove a vertex of the Polygon (existing Vertices are shifted) |
|
|
Reverse() |
Reverse the order of the Vertices in the Polygon (ie switch between Clockwise and CounterClockwise) |
|
|
TPolygon2< T... |
Scale |
Scale the Polygon relative to a given point |
|
TSegment2< T... |
Segment ( |
|
|
SegmentItera... |
SegmentItr() |
|
|
SegmentEnume... |
Segments() |
|
|
Set ( |
Set vertex at given index to a new Position |
|
|
SetVertices |
Replace the list of Vertices with a new list |
|
|
T |
SignedArea() |
|
|
Simplify ( |
Simplify the Polygon to reduce the vertex count |
|
|
const FVecto... |
Start() |
|
|
TPolygon2< T... |
Transform |
Apply an arbitrary transformation to the Polygon |
|
TPolygon2< T... |
Translate ( |
Translate the polygon |
|
int |
VertexCount() |
|
|
VtxNormalOffset ( |
Offset each point by the given Distance along vertex "normal" direction |
|
|
T |
WindingIntegral ( |
Name | Description | ||
---|---|---|---|
|
FVector2< T ... |
operator[] ( |
Get the vertex at a given index |
|
const FVecto... |
operator[] ( |
Get the vertex at a given index |
Name |
Description |
|
---|---|---|
|
SegmentEnumerable |
Wrapper around SegmentIterator that has begin() and end() suitable for range-based for loop |
|
SegmentIterator |
SegmentIterator is used to iterate over the TSegment2 |