Navigation
API > API/Plugins > API/Plugins/Paper2D > API/Plugins/Paper2D/FSpriteGeometryCollection
Description
Takes all polygon shapes and generates a list of triangles from them. Output will contain a multiple of 3 points, each set is one triangle. Always ignores circles, but can include or ignore boxes based on bIncludeBoxes.
| Name | Triangulate |
| Type | function |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h |
| Include Path | #include "SpriteEditorOnlyTypes.h" |
| Source | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Private/PaperSprite.cpp |
void Triangulate
(
TArray < FVector2D > & Target,
bool bIncludeBoxes
) const