Navigation
API > API/Runtime > API/Runtime/GeometryCore
Generate a sphere mesh, with UVs wrapped cylindrically
| Name | FSphereGenerator |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Generators/SphereGenerator.h |
| Include Path | #include "Generators/SphereGenerator.h" |
Syntax
class FSphereGenerator : public UE::Geometry::FMeshShapeGenerator
Inheritance Hierarchy
- FMeshShapeGenerator → FSphereGenerator
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CornerIndices | FVector3i | Generators/SphereGenerator.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bPolygroupPerQuad | bool | If true, each quad of box gets a separate polygroup | Generators/SphereGenerator.h | |
| NumPhi | int | Generators/SphereGenerator.h | ||
| NumTheta | int | Generators/SphereGenerator.h | ||
| Radius | double | Radius | Generators/SphereGenerator.h |
Functions
Public
Overridden from FMeshShapeGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FMeshShapeGenerator & Generate() |
Generate the mesh | Generators/SphereGenerator.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector3d SphericalToCartesian
(
double r, |
Generators/SphereGenerator.h |