Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp |
void DrawTorus
(
FPrimitiveDrawInterface * PDI,
const FMatrix & Transform,
const FVector & XAxis,
const FVector & YAxis,
double OuterRadius,
double InnerRadius,
int32 OuterSegments,
int32 InnerSegments,
const FMaterialRenderProxy * MaterialRenderProxy,
uint8 DepthPriority,
bool bPartial,
float Angle,
bool bEndCaps
)
Remarks
Draws a torus using triangles.
Parameters
| Name | Description |
|---|---|
| PDI | Draw interface. |
| Transform | Generic transform to apply (ex. a local-to-world transform). |
| XAxis | Normalized X alignment axis. |
| YAxis | Normalized Y alignment axis. |
| Color | Color of the circle. |
| OuterRadius | Radius of the torus center-line. Viewed from above, the outside of the torus has a radius of OuterRadius + InnerRadius and the hole of the torus has a radius of OuterRadius - InnerRadius. |
| InnerRadius | Radius of the torus's cylinder. |
| OuterSegments | Numbers of segment divisions for outer circle. |
| InnerSegments | Numbers of segment divisions for inner circle. |
| MaterialRenderProxy | Material to use for render |
| DepthPriority | Depth priority for the circle. |
| bPartial | Whether full or partial torus should be rendered. |
| Angle | If partial, angle in radians of the arc clockwise beginning at the XAxis. |
| bEndCaps | If partial, whether the ends should be capped with triangles. |