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; AppendSweepPolygon
&40;
UDynamicMesh &42; TargetMesh,
FGeometryScriptPrimitiveOptions PrimitiveOptions,
FTransform Transform,
const TArray< FVector2D > & PolygonVertices,
const TArray< FTransform > & SweepPath,
bool bLoop,
bool bCapped,
float StartScale,
float EndScale,
float RotationAngleDeg,
UGeometryScriptDebug &42; Debug
&41;
Remarks
Sweep the given 2D PolygonVertices 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 |
|---|---|
| PolygonVertices | vertices of the closed 2D polyon 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 |
| 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) |
| bCapped | if true the open ends of the swept generalized cylinder are triangulated |
| 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 |