Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/Polys.h |
Include | #include "Engine/Polys.h" |
Syntax
class FPoly
Remarks
A general-purpose polygon used by the editor. An FPoly is a free-standing class which exists independently of any particular level, unlike the polys associated with Bsp nodes which rely on scads of other objects. FPolys are used in UnrealEd for internal work, such as building the Bsp and performing boolean operations.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TObjectPtr< ABrush > | Actor | |
![]() |
FVector3f | Base | |
![]() |
int32 | iBrushPoly | |
![]() |
int32 | iLink | |
![]() |
int32 | iLinkSurf | |
![]() |
FName | ItemName | |
![]() |
float | LightMapScale | |
![]() |
FLightmassPrimitiveSettings | LightmassSettings | This MUST be the format of FLightmassPrimitiveSettings The Lightmass settings for surfaces generated from this poly |
![]() |
TObjectPtr< UMaterialInterface > | Material | |
![]() |
FVector3f | Normal | |
![]() |
uint32 | PolyFlags | |
![]() |
FName | RulesetVariation | |
![]() |
uint32 | SmoothingMask | |
![]() |
FVector3f | TextureU | |
![]() |
FVector3f | TextureV | |
![]() |
VerticesArrayType | Vertices |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FPoly () |
Constructor, initializing all member variables. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
float | Area () |
Computes the 2D area of the polygon. Returns zero if the polygon has less than three verices. |
![]() ![]() |
FPoly | BuildAndCutInfiniteFPoly
(
const FPlane& InPlane, |
|
![]() ![]() |
FPoly | BuildInfiniteFPoly
(
const FPlane& InPlane |
Builds a huge poly aligned with the specified plane. |
![]() |
int32 | CalcNormal
(
bool bSilent |
Compute normal of an FPoly. |
![]() |
bool | DoesLineIntersect
(
FVector Start, |
Checks to see if the specified line intersects this poly or not. |
![]() ![]() |
int32 | Return whether this poly and Test are facing each other. | |
![]() |
int32 | Compute all remaining polygon parameters (normal, etc) that are blank. | |
![]() |
int32 | Fix () |
Fix up an editor poly by deleting vertices that are identical. |
![]() |
FVector | GetMidPoint () |
Computes the mid point of the polygon (in local space). |
![]() ![]() |
void | GetOutsideWindings
(
ABrush* InOwnerBrush, |
Takes a set of polygons and returns a vertex array representing the outside winding for them. |
![]() |
int32 | GetVertexIndex
(
FVector3f& InVtx |
Finds the index of the specific vertex. |
![]() |
void | Init () |
Initialize everything in an editor polygon structure to defaults. |
![]() |
void | InsertVertex
(
int32 InPos, |
Inserts a vertex into the poly at a specific position. |
![]() ![]() |
int32 | IsBackfaced
(
const FVector3f& Point |
Inlines. |
![]() |
bool | IsConvex () |
Checks to see if this polygon is a convex shape. |
![]() |
bool | IsCoplanar () |
Checks to see if all the vertices on a polygon are coplanar. |
![]() ![]() |
int32 | IsCoplanar
(
const FPoly& Test |
|
![]() |
bool | Checks to see if the specified vertex lies on this polygons plane. | |
![]() |
bool | Checks to see if the specified vertex is on this poly. | |
![]() ![]() |
void | OptimizeIntoConvexPolys
(
ABrush* InOwnerBrush, |
Optimizes a set of polygons into a smaller set of convex polygons. |
![]() |
int32 | Remove colinear vertices and check convexity. Returns 1 if convex, 0 if nonconvex or collapsed. | |
![]() |
void | RemoveVertex
(
FVector InVtx |
Removes a vertex from the polygons list of vertices |
![]() |
void | Reverse () |
Reverse an FPoly by reversing the normal and reversing the order of its vertices. |
![]() |
void | Rotate
(
const FRotator3f& Rotation |
Rotate an editor polygon. |
![]() |
void | Scale an editor polygon. | |
![]() |
int32 | Split a poly and keep only the front half. Returns number of vertices, 0 if clipped away. | |
![]() ![]() |
int32 | Split with a Bsp node. | |
![]() ![]() |
int32 | Split with plane. Meant to be numerically stable. | |
![]() ![]() |
int32 | SplitWithPlaneFast
(
const FPlane& Plane, |
Split with plane quickly for in-game geometry operations. |
![]() |
void | Transform an editor polygon with a post-transformation addition. | |
![]() |
int32 | Triangulate
(
ABrush* InOwnerBrush, |
Breaks down this polygon into triangles. The triangles are then returned to the caller in an array. |
Typedefs
Name | Description |
---|---|
VerticesArrayType | Store up to 16 vertices inline. |