# How to use constructor of FPolygonEdgeMeshGenerator?

**URL:** <https://forums.unrealengine.com/t/how-to-use-constructor-of-fpolygonedgemeshgenerator/2246599>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 28, 2024, 1:41am UTC](https://forums.unrealengine.com/t/how-to-use-constructor-of-fpolygonedgemeshgenerator/2246599 "2024-12-28T01:41:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aejjee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aejjee/32/1204088_2.png) [@Aejjee](https://forums.unrealengine.com/u/Aejjee)\
**Post date:** [December 28, 2024, 1:41am UTC](https://forums.unrealengine.com/t/how-to-use-constructor-of-fpolygonedgemeshgenerator/2246599/1 "2024-12-28T01:41:26Z")

</div>

The [description](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/GeometryCore/Generators/FPolygonEdgeMeshGenerator) of this mesh generator in the documentation says that it generates a mesh from a closed polygon of edges, by creating a quad for each edge.

So I would’ve expected the constructor to take a `TArray` of `TTuple`s of `FVector`s describing each edge. Or perhaps just an array of vectors in order describing the edge sequence.

But instead the constructor is like this:

```auto
FPolygonEdgeMeshGenerator (
const TArray< FFrame3d >& InPolygon,
bool bInClosed,
const TArray< double >& InOffsetScaleFactors,
double InWidth,
FVector3d InNormal,
bool bInRoundedCorners,
double InCornerRadius,
bool bInLimitCornerRadius,
int InNumArcVertices
)

```

This takes an array of `FFrame3d` structs, which I have no clue how to use to describe a list of edges. Looking in the `FFrame3d` struct I can see that the only two spatially defined properties are the `FVector Origin` and `FRotator` that describes the plane normal. Any help on how to use this constructor would be very appreciated!

For more detail I have a polygon that is a list of vertices like this image and I would like to fill it something like as I have drawn with lines:

 ![Polygon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/6/28637336f020e37c2d818499091473378ae497fc.png)
