![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
| void FGeomTools::Buid2DPolysFromEdges | ( | TArray< FUtilPoly2D > & | OutPolys, |
| const TArray< FUtilEdge2D > & | InEdges, | ||
| const FColor & | VertColor | ||
| ) |
Given a set of edges, find the set of closed polygons created by them.
| void FGeomTools::ClipMeshWithPlane | ( | TArray< FClipSMTriangle > & | OutTris, |
| TArray< FUtilEdge3D > & | OutClipEdges, | ||
| const TArray< FClipSMTriangle > & | InTris, | ||
| const FPlane & | Plane | ||
| ) |
Take the input mesh and cut it with supplied plane, creating new verts etc. Also outputs new edges created on the plane.
| void FGeomTools::GeneratePlanarFitPolyUVs | ( | FUtilPoly2D & | Polygon | ) |
Does a simple planar map using the bounds of this 2D polygon.
Does a simple box map onto this 2D polygon.
| void FGeomTools::GeneratePlanarTilingPolyUVs | ( | FUtilPoly2D & | Polygon, |
| float | TileSize | ||
| ) |
Applies tiling UVs to the verts of this polygon
| void FGeomTools::GetClippableStaticMeshTriangles | ( | TArray< FClipSMTriangle > & | OutClippableTriangles, |
| const UStaticMesh * | StaticMesh | ||
| ) |
Extracts the triangles from a static-mesh as clippable triangles.
| bool FGeomTools::PointInTriangle | ( | const FVector3f & | A, |
| const FVector3f & | B, | ||
| const FVector3f & | C, | ||
| const FVector3f & | P, | ||
| const float | InsideTriangleDotProductEpsilon = 0.0f |
||
| ) |
Util to see if P lies within triangle created by A, B and C.
| void FGeomTools::ProjectEdges | ( | TArray< FUtilEdge2D > & | Out2DEdges, |
| FMatrix & | ToWorld, | ||
| const TArray< FUtilEdge3D > & | In3DEdges, | ||
| const FPlane & | InPlane | ||
| ) |
Take a set of 3D Edges and project them onto the supplied plane. Also returns matrix use to convert them back into 3D edges.
| void FGeomTools::RemoveRedundantTriangles | ( | TArray< FClipSMTriangle > & | Tris | ) |
Given a set of triangles, remove those which share an edge and could be collapsed into one triangle.
| void FGeomTools::Split2DPolysWithPlane | ( | FUtilPoly2DSet & | PolySet, |
| const FPlane & | Plane, | ||
| const FColor & | ExteriorVertColor, | ||
| const FColor & | InteriorVertColor | ||
| ) |
Split 2D polygons with a 3D plane.
| FClipSMPolygon FGeomTools::Transform2DPolygonToSMPolygon | ( | const FUtilPoly2D & | InPoly, |
| const FMatrix & | InMatrix | ||
| ) |
Transform triangle from 2D to 3D static-mesh triangle.
| bool FGeomTools::TriangulatePoly | ( | TArray< FClipSMTriangle > & | OutTris, |
| const FClipSMPolygon & | InPoly, | ||
| bool | bKeepColinearVertices = false |
||
| ) |
Given a polygon, decompose into triangles and append to OutTris.
Given a polygon, decompose into triangles and append to OutTris.