Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_16
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshPrimitiveFunctions.h |
| Include | #include "GeometryScript/MeshPrimitiveFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/MeshPrimitiveFunctions.cpp |
static UDynamicMesh &42; AppendSweepPolyline
&40;
UDynamicMesh &42; TargetMesh,
FGeometryScriptPrimitiveOptions PrimitiveOptions,
FTransform Transform,
const TArray< FVector2D > & PolylineVertices,
const TArray< FTransform > & SweepPath,
const TArray< float > & PolylineTexParamU,
const TArray< float > & SweepPathTexParamV,
bool bLoop,
float StartScale,
float EndScale,
float RotationAngleDeg,
UGeometryScriptDebug &42; Debug
&41;
Remarks
Sweep the given 2D PolylineVertices along the SweepPath specified as a set of FTransforms If the 2D vertices are (U,V), then in the coordinate space of the FTransform, X points "along" the path, Y points "right" (U) and Z points "up" (V).
Parameters
| Name | Description |
|---|---|
| PolylineVertices | vertices of the open 2D path that will be swept along the SweepPath |
| SweepPath | defines the 3D sweep path curve as a 3D poly-path, with rotation and scaling at each polypath vertex taken from the Transform |
| PolylineTexParamU | defines U coordinate value for each element in PolylineVertices. Must be same length as PolylineVertices (ignored if length=0). |
| SweepPathTexParamV | defines V coordinate value for each element in SweepPath. Must be same length as SweepPath if bLoop=false, length+1 if bLoop=true, and ignored if length=0. |
| bLoop | if true, SweepPath is considered to be a Loop and a section connecting the end and start of the path is added (bCapped is ignored) |
| StartScale | uniform scaling applied to the 2D polygon at the start of the path. Interpolated via arc length to EndScale at the end of the path. |
| EndScale | uniform scaling applied to the 2D polygon at the end of the path |
| RotationAngleDeg | Rotation applied to the 2D Polygon. Positive rotation rotates clockwise, ie Up/+Z/+V towards Right/+Y/+U. This Rotation is applied before any rotation in the SweepPath Transforms. |