/Engine/Source/Runtime/GeometryCore/Public/Generators/CapsuleGenerator.h
The Capsule line segment is oriented along +Z, with the start point at (0,0,0) and the end point at (0,0,SegmentLength). So the lower hemispherical cap is below the origin, ie the bottom pole is at (0,0,-Radius) and the top pole is at (0,0,SegmentLength+Radius).
class FCapsuleGenerator : public [UE::Geometry::FMeshShapeGenerator](API\Runtime\GeometryCore\Generators\FMeshShapeGenerator)
bool
bPolygroupPerQuad
If true, each quad gets a separate polygroup, otherwise the entire mesh is a single polygroup
int
NumCircleSteps
Number of vertices along each circle
int
NumHemisphereArcSteps
Number of vertices along the 90-degree arc from the pole to edge of spherical cap.
double
Radius
Radius of capsule
double
SegmentLength
Length of capsule line segment, so total height is SegmentLength + 2*Radius