Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_PolygonListFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PolygonFunctions.h |
| Include | #include "GeometryScript/PolygonFunctions.h" |
Syntax
UCLASS (Meta=(ScriptName="GeometryScript_PolygonList"))
class UGeometryScriptLibrary_PolygonListFunctions : public UBlueprintFunctionLibrary
Variables
| Type | Name | Description | |
|---|---|---|---|
| const TArray< FGeometryScriptSimplePolygon > bool | bFixHoleOrientations | ||
| FGeometryScriptSimplePolygon const TArray< FGeometryScriptSimplePolygon > bool | bFixHoleOrientations | ||
| const TArray< FGeometryScriptSimplePolygon > & | HolePolygons | ||
| FGeometryScriptSimplePolygon const TArray< FGeometryScriptSimplePolygon > & | HolePolygons | ||
| FGeometryScriptSimplePolygon | OuterPolygon |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendPolygonList
(
UPARAM(ref) FGeometryScriptGeneralPolygonList& PolygonList, |
Append the polygons in 'Polygons to Append' to Polygon List | |
| FGeometryScriptGeneralPolygonList | CreatePolygonsFromOpenPolyPathsOffset
(
TArray< FGeometryScriptPolyPath > PolyPaths, |
Apply an offset to a set of open 2D PolyPaths, generating closed polygons as a result | |
| FGeometryScriptGeneralPolygonList | CreatePolygonsFromPathOffset
(
TArray< FVector2D > Path, |
Apply an offset to a single open 2D path, generating closed polygons as a result | |
| double | GetPolygonArea
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns the area enclosed by a Polygon. Returns zero for an invalid PolygonIndex. | |
| FBox2D | GetPolygonBounds
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns the bounding box of a Polygon. Returns an empty, invalid box for an invalid PolygonIndex. | |
| int32 | GetPolygonCount
(
FGeometryScriptGeneralPolygonList PolygonList |
Returns the number of polygons in the Polygon List | |
| int32 | GetPolygonHoleCount
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns the number of holes in a Polygon. Returns zero for an invalid PolygonIndex. | |
| double | GetPolygonListArea
(
FGeometryScriptGeneralPolygonList PolygonList |
Returns the area enclosed by a Polygon | |
| FBox2D | GetPolygonListBounds
(
FGeometryScriptGeneralPolygonList PolygonList |
Returns the bounding box of a Polygon | |
| FVector2D | GetPolygonVertex
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns the specified vertex of a Polygon either of the outer polygon, if HoleIndex is -1, or specified inner hole. | |
| int32 | GetPolygonVertexCount
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns the number of vertices in a Polygon's outer shape, if HoleIndex is -1, or in the specified inner hole. | |
| void | GetPolygonVertices
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns the vertices of a Polygon either of the outer polygon, if HoleIndex is -1, or specified inner hole. | |
| FGeometryScriptSimplePolygon | GetSimplePolygon
(
FGeometryScriptGeneralPolygonList PolygonList, |
Returns a specified Simple Polygon from a Polygon List either the outer polygon, if HoleIndex is -1, or specified inner hole. | |
| FGeometryScriptGeneralPolygonList | PolygonsDifference
(
FGeometryScriptGeneralPolygonList PolygonList, |
Compute difference of Polygon List and Polygons to Subtract | |
| FGeometryScriptGeneralPolygonList | PolygonsExclusiveOr
(
FGeometryScriptGeneralPolygonList PolygonList, |
Compute exclusive or of Polygon List and Polygons to Exclusive Or | |
| FGeometryScriptGeneralPolygonList | PolygonsIntersection
(
FGeometryScriptGeneralPolygonList PolygonList, |
Compute intersection of Polygon List and Polygons to Intersect | |
| FGeometryScriptGeneralPolygonList | PolygonsMorphologyClose
(
FGeometryScriptGeneralPolygonList PolygonList, |
Apply a morphological "close" operator to a list of closed polygons first offsetting by +Offset, then by -Offset. | |
| FGeometryScriptGeneralPolygonList | PolygonsMorphologyOpen
(
FGeometryScriptGeneralPolygonList PolygonList, |
Apply a morphological "open" operator to a list of closed polygons first offsetting by -Offset, then by +Offset. | |
| FGeometryScriptGeneralPolygonList | PolygonsOffset
(
FGeometryScriptGeneralPolygonList PolygonList, |
Apply a single offset to a list of closed polygons | |
| FGeometryScriptGeneralPolygonList | PolygonsOffsets
(
FGeometryScriptGeneralPolygonList PolygonList, |
Apply two offsets in sequence to a list of closed polygons | |
| FGeometryScriptGeneralPolygonList | PolygonsUnion
(
FGeometryScriptGeneralPolygonList PolygonList, |
Compute union of all polygons in Polygon List. | |
| static | UPARAM
(
DisplayName |
Create a Polygon List of a single Polygon, with optional holes | |
| static | UPARAM
(
DisplayName |
Add Polygon to a Polygon List, with optional holes. Returns index of the added polygon. | |
| static | UPARAM
(
DisplayName |
Create a Polygon List from an array of Simple Polygons |