Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_SimplePolygonFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PolygonFunctions.h |
| Include | #include "GeometryScript/PolygonFunctions.h" |
Syntax
UCLASS (Meta=(ScriptName="GeometryScript_SimplePolygon"))
class UGeometryScriptLibrary_SimplePolygonFunctions : public UBlueprintFunctionLibrary
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | Position |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FGeometryScriptSimplePolygon | Conv_ArrayOfVector2DToGeometryScriptSimplePolygon
(
const TArray< FVector2D >& PathVertices |
Returns a Polygon created from an array of 2D position vectors. | |
| FGeometryScriptSimplePolygon | Conv_ArrayToGeometryScriptSimplePolygon
(
const TArray< FVector >& PathVertices |
Returns a Polygon created from an array of 3D position vectors, ignoring the Z coordinate. | |
| TArray< FVector > | Returns an array of 3D vectors with the Polygon vertex locations, with Z coordinate set to zero. | ||
| TArray< FVector2D > | Returns an array of 2D Vectors with the Polygon vertex locations. | ||
| void | ConvertSplineToPolygon
(
const USplineComponent* Spline, |
Sample positions from a USplineComponent into a Simple Polyon, based on the given SamplingOptions | |
| double | GetPolygonArcLength
(
FGeometryScriptSimplePolygon Polygon |
Returns the arc length of a Simple Polygon | |
| double | GetPolygonArea
(
FGeometryScriptSimplePolygon Polygon |
Returns the area enclosed by a Simple Polygon | |
| FBox2D | GetPolygonBounds
(
FGeometryScriptSimplePolygon Polygon |
Returns the bounding box of a Simple Polygon | |
| FVector2D | GetPolygonTangent
(
FGeometryScriptSimplePolygon Polygon, |
Returns a vertex's tangent of a Simple Polygon. | |
| FVector2D | GetPolygonVertex
(
FGeometryScriptSimplePolygon Polygon, |
Returns the specified vertex of a Simple Polygon. | |
| int32 | GetPolygonVertexCount
(
FGeometryScriptSimplePolygon Polygon |
Returns the number of vertices in a Simple Polygon | |
| void | SetPolygonVertex
(
UPARAM(ref) FGeometryScriptSimplePolygon Polygon, |
Set the specified vertex of a Simple Polygon. | |
| static | UPARAM
(
DisplayName |
Set the specified vertex of a Simple Polygon. Returns the index of the added vertex. |