Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_PolyPathFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PolyPathFunctions.h |
| Include | #include "GeometryScript/PolyPathFunctions.h" |
Syntax
UCLASS&40;Meta&61;&40;ScriptName&61;"GeometryScript_PolyPath"&41;&41;
class UGeometryScriptLibrary_PolyPathFunctions : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| FGeometryScriptPolyPath | Conv_ArrayOfVector2DToGeometryScriptPolyPath
(
const TArray< FVector2D >& PathVertices |
Returns a PolyPath created from an array of 2D position vectors. | |
| FGeometryScriptPolyPath | Conv_ArrayToGeometryScriptPolyPath
(
const TArray< FVector >& PathVertices |
Returns a PolyPath created from an array of 3D position vectors. | |
| TArray< FVector > | Returns an array of 3D vectors with the PolyPath vertex locations. | ||
| TArray< FVector2D > | Returns an array of 2D Vectors with the PolyPath vertex locations projected onto the XY plane. | ||
| void | ConvertArrayOfVector2DToPolyPath
(
const TArray< FVector2D >& VertexArray, |
Creates a PolyPath from an array of 2D position vectors. | |
| void | ConvertArrayToPolyPath
(
const TArray< FVector >& VertexArray, |
Creates a PolyPath from an array of 3D position vectors. | |
| void | ConvertPolyPathToArray
(
FGeometryScriptPolyPath PolyPath, |
Populates an array of 3D vectors with the PolyPath vertex locations. | |
| void | ConvertPolyPathToArrayOfVector2D
(
FGeometryScriptPolyPath PolyPath, |
Creates an array of 2D Vectors with the PolyPath vertex locations projected onto the XY plane. | |
| void | ConvertSplineToPolyPath
(
const USplineComponent* Spline, |
Sample positions from a USplineComponent into a PolyPath, based on the given SamplingOptions | |
| FGeometryScriptPolyPath | CreateArcPath2D
(
FVector2D Center, |
Create an open arc on the XY plane around the given Center. | |
| FGeometryScriptPolyPath | CreateArcPath3D
(
FTransform Transform, |
Create an open arc around the origin on the XY plane, then transformed by Transform. | |
| FGeometryScriptPolyPath | CreateCirclePath2D
(
FVector2D Center, |
Create a closed circle on the XY plane around the given Center. | |
| FGeometryScriptPolyPath | CreateCirclePath3D
(
FTransform Transform, |
Create a closed circle around the origin on the XY plane, then transformed by Transform. | |
| FGeometryScriptPolyPath | FlattenTo2DOnAxis
(
FGeometryScriptPolyPath PolyPath, |
Create a 2D, flattened copy of the path by dropping the given axis, and using the other two coordinates as the new X, Y coordinates. | |
| int32 | GetNearestVertexIndex
(
FGeometryScriptPolyPath PolyPath, |
Find the index of the vertex closest to a given point. Returns -1 if the PolyPath has no vertices. | |
| double | GetPolyPathArcLength
(
FGeometryScriptPolyPath PolyPath |
Returns the length of the PolyPath. | |
| int | GetPolyPathLastIndex
(
FGeometryScriptPolyPath PolyPath |
Returns the index of the last vertex in the PolyPath. | |
| int | GetPolyPathNumVertices
(
FGeometryScriptPolyPath PolyPath |
Returns the number of vertices in the the PolyPath. | |
| FVector | GetPolyPathTangent
(
FGeometryScriptPolyPath PolyPath, |
Returns the local tangent vector of the PolyPath at the specified vertex index. | |
| FVector | GetPolyPathVertex
(
FGeometryScriptPolyPath PolyPath, |
Returns the 3D position of the requested vertex in the PolyPath. | |
| void | SampleSplineToTransforms
(
const USplineComponent* Spline, |
Sample a USplineComponent into a list of FTransforms, based on the given SamplingOptions. |