Module 

Header 
/Engine/Source/Runtime/Engine/Classes/Engine/Polys.h 
Include 
#include "Engine/Polys.h" 
class FPoly
A generalpurpose polygon used by the editor. An FPoly is a freestanding 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.
Name  Description  


ABrush * 
Actor 


Base 


iBrushPoly 


iLink 


iLinkSurf 


ItemName 


float 
LightMapScale 


LightmassSettings 
This MUST be the format of FLightmassPrimitiveSettings The Lightmass settings for surfaces generated from this poly 


Material 


Normal 


PolyFlags 


RulesetVariation 


SmoothingMask 


TextureU 


TextureV 


Vertices 
Name  Description  


FPoly() 
Constructor, initializing all member variables. 
Name  Description  


float 
Area() 
Computes the 2D area of the polygon. Returns zero if the polygon has less than three verices. 

BuildAndCutInfiniteFPoly 


BuildInfiniteFPoly ( 
Builds a huge poly aligned with the specified plane. 


CalcNormal ( 
Compute normal of an FPoly. 


DoesLineIntersect 
Checks to see if the specified line intersects this poly or not. 


Faces ( 
Return whether this poly and Test are facing each other. 


Finalize 
Compute all remaining polygon parameters (normal, etc) that are blank. 


Fix() 
Fix up an editor poly by deleting vertices that are identical. 


GetMidPoint() 
Computes the mid point of the polygon (in local space). 


GetOutsideWindings 
Takes a set of polygons and returns a vertex array representing the outside winding for them. 


GetVertexIndex ( 
Finds the index of the specific vertex. 


Init() 
Initialize everything in an editor polygon structure to defaults. 


InsertVertex 
Inserts a vertex into the poly at a specific position. 


IsBackfaced ( 
Inlines. 


IsConvex() 
Checks to see if this polygon is a convex shape. 


IsCoplanar() 
Checks to see if all the vertices on a polygon are coplanar. 


IsCoplanar ( 


OnPlane ( 
Checks to see if the specified vertex lies on this polygons plane. 


OnPoly ( 
Checks to see if the specified vertex is on this poly. 


OptimizeIntoConvexPolys ( 
Optimizes a set of polygons into a smaller set of convex polygons. 


RemoveColinears() 
Remove colinear vertices and check convexity. Returns 1 if convex, 0 if nonconvex or collapsed. 


RemoveVertex ( 
Removes a vertex from the polygons list of vertices 


Reverse() 
Reverse an FPoly by reversing the normal and reversing the order of its vertices. 


Rotate ( 
Rotate an editor polygon. 


Scale ( 
Scale an editor polygon. 


Split 
Split a poly and keep only the front half. Returns number of vertices, 0 if clipped away. 


SplitWithNode 
Split with a Bsp node. 


SplitWithPlane 
Split with plane. Meant to be numerically stable. 


SplitWithPlaneFast 
Split with plane quickly for ingame geometry operations. 


Transform ( 
Transform an editor polygon with a posttransformation addition. 


Triangulate 
Breaks down this polygon into triangles. The triangles are then returned to the caller in an array. 
Name 
Description 

VerticesArrayType 
Store up to 16 vertices inline. 