UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::FDiscMeshGenerator Class Reference

#include <DiscMeshGenerator.h>

+ Inheritance diagram for UE::Geometry::FDiscMeshGenerator:

Public Member Functions

GEOMETRYCORE_API FDiscMeshGenerator ()
 
virtual GEOMETRYCORE_API FMeshShapeGeneratorGenerate () override
 
FVector3d MakeVertex (double x, double y)
 
- Public Member Functions inherited from UE::Geometry::FMeshShapeGenerator
virtual ~FMeshShapeGenerator ()
 
bool HasAttributes () const
 
void ResetAttributes (bool bResetPolygonIDs=false)
 
void Reset ()
 
void SetBufferSizes (int NumVertices, int NumTriangles, int NumUVs, int NumNormals)
 
void ExtendBufferSizes (int AddVertices, int AddTriangles, int AddUVs, int AddNormals)
 
void SetVertex (int Index, const FVector3d &Position)
 
int AppendVertex (const FVector3d &Position)
 
void SetUV (int Index, const FVector2f &UV, int ParentVertex)
 
int AppendUV (const FVector2f &UV, int ParentVertex)
 
void SetNormal (int Index, const FVector3f &Normal, int ParentVertex)
 
int AppendNormal (const FVector3f &Normal, int ParentVertex)
 
void SetTriangle (int Index, const FIndex3i &Tri)
 
void SetTriangle (int Index, int A, int B, int C)
 
void SetTriangle (int Index, int A, int B, int C, bool bClockwiseOverride)
 
int AppendTriangle (int A, int B, int C)
 
void SetTriangleUVs (int Index, const FIndex3i &Tri)
 
void SetTriangleUVs (int Index, int A, int B, int C)
 
void SetTriangleUVs (int Index, int A, int B, int C, bool bClockwiseOverride)
 
void SetTriangleNormals (int Index, const FIndex3i &Tri)
 
void SetTriangleNormals (int Index, int A, int B, int C)
 
void SetTriangleNormals (int Index, int A, int B, int C, bool bClockwiseOverride)
 
void SetTrianglePolygon (int Index, int PolygonID)
 
void SetTriangleWithMatchedUVNormal (int Index, int A, int B, int C)
 

Public Attributes

float Radius
 
FVector3f Normal
 
int AngleSamples
 
int RadialSamples
 
float StartAngle
 
float EndAngle
 
bool bSinglePolygroup = false
 
FIndex2i IndicesMap
 
- Public Attributes inherited from UE::Geometry::FMeshShapeGenerator
TArray< FVector3dVertices
 
TArray< FVector2fUVs
 
TArray< int > UVParentVertex
 
TArray< FVector3fNormals
 
TArray< int > NormalParentVertex
 
TArray< FIndex3iTriangles
 
TArray< FIndex3iTriangleUVs
 
TArray< FIndex3iTriangleNormals
 
TArray< int > TrianglePolygonIDs
 
bool bReverseOrientation = false
 

Additional Inherited Members

- Static Public Member Functions inherited from UE::Geometry::FMeshShapeGenerator
static FVector3d BilinearInterp (const FVector3d &v00, const FVector3d &v10, const FVector3d &v11, const FVector3d &v01, double tx, double ty)
 
static FVector2d BilinearInterp (const FVector2d &v00, const FVector2d &v10, const FVector2d &v11, const FVector2d &v01, double tx, double ty)
 
static FVector2f BilinearInterp (const FVector2f &v00, const FVector2f &v10, const FVector2f &v11, const FVector2f &v01, float tx, float ty)
 
static FVector3i LinearInterp (const FVector3i &a, const FVector3i &b, double t)
 

Detailed Description

Generate planar disc (a circle polygon)

Constructor & Destructor Documentation

◆ FDiscMeshGenerator()

FDiscMeshGenerator::FDiscMeshGenerator ( )

Member Function Documentation

◆ Generate()

FMeshShapeGenerator & FDiscMeshGenerator::Generate ( )
overridevirtual

Generate the disc

Implements UE::Geometry::FMeshShapeGenerator.

Reimplemented in UE::Geometry::FPuncturedDiscMeshGenerator.

◆ MakeVertex()

FVector3d UE::Geometry::FDiscMeshGenerator::MakeVertex ( double  x,
double  y 
)
inline

Create vertex at position under IndicesMap, shifted to Origin

Member Data Documentation

◆ AngleSamples

int UE::Geometry::FDiscMeshGenerator::AngleSamples

Number of vertices around circumference

◆ bSinglePolygroup

bool UE::Geometry::FDiscMeshGenerator::bSinglePolygroup = false

If true, output mesh has a single polygroup, otherwise each quad/tri gets a separate group

◆ EndAngle

float UE::Geometry::FDiscMeshGenerator::EndAngle

End of angle range spanned by disc, in degrees

◆ IndicesMap

FIndex2i UE::Geometry::FDiscMeshGenerator::IndicesMap

How to map 2D indices to 3D. Default is (0,1) = (x,y,0).

◆ Normal

FVector3f UE::Geometry::FDiscMeshGenerator::Normal

Normal vector of all vertices will be set to this value. Default is +Z axis.

◆ RadialSamples

int UE::Geometry::FDiscMeshGenerator::RadialSamples

Number of vertices along radial spokes

◆ Radius

float UE::Geometry::FDiscMeshGenerator::Radius

Radius

◆ StartAngle

float UE::Geometry::FDiscMeshGenerator::StartAngle

Start of angle range spanned by disc, in degrees


The documentation for this class was generated from the following files: