Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_SimplePol-
Description
Returns the specified vertex of a Simple Polygon. VertexIndex loops around, so e.g., -1 gives the last vertex in the polygon. If Polygon has no vertices, returns the zero vector.
| Name | GetPolygonVertex |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PolygonFunctions.h |
| Include Path | #include "GeometryScript/PolygonFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/PolygonFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|SimplePolygon", Meta=(ScriptMethod))
static FVector2D GetPolygonVertex
(
FGeometryScriptSimplePolygon Polygon,
int32 VertexIndex,
bool & bPolygonIsEmpty
)