Navigation
API > API/Runtime > API/Runtime/GeometryCore
Generate planar disc (a circle polygon)
| Name | FDiscMeshGenerator |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Generators/DiscMeshGenerator.h |
| Include Path | #include "Generators/DiscMeshGenerator.h" |
Syntax
class FDiscMeshGenerator : public UE::Geometry::FMeshShapeGenerator
Inheritance Hierarchy
- FMeshShapeGenerator → FDiscMeshGenerator
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDiscMeshGenerator() |
Generators/DiscMeshGenerator.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AngleSamples | int | Number of vertices around circumference | Generators/DiscMeshGenerator.h | |
| bSinglePolygroup | bool | If true, output mesh has a single polygroup, otherwise each quad/tri gets a separate group | Generators/DiscMeshGenerator.h | |
| EndAngle | float | End of angle range spanned by disc, in degrees | Generators/DiscMeshGenerator.h | |
| IndicesMap | FIndex2i | How to map 2D indices to 3D. Default is (0,1) = (x,y,0). | Generators/DiscMeshGenerator.h | |
| Normal | FVector3f | Normal vector of all vertices will be set to this value. Default is +Z axis. | Generators/DiscMeshGenerator.h | |
| RadialSamples | int | Number of vertices along radial spokes | Generators/DiscMeshGenerator.h | |
| Radius | float | Radius | Generators/DiscMeshGenerator.h | |
| StartAngle | float | Start of angle range spanned by disc, in degrees | Generators/DiscMeshGenerator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector3d MakeVertex
(
double x, |
Create vertex at position under IndicesMap, shifted to Origin | Generators/DiscMeshGenerator.h |
Overridden from FMeshShapeGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FMeshShapeGenerator & Generate() |
Generate the disc | Generators/DiscMeshGenerator.h |