Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Drawing
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/MeshDebugDrawing.h |
| Include | #include "Drawing/MeshDebugDrawing.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/MeshDebugDrawing.cpp |
namespace MeshDebugDraw
{
void MeshDebugDraw::DrawSimpleFixedScreenAreaGrid
(
const FViewCameraState & CameraState,
const FFrame3d & LocalFrame,
int32 NumGridLines,
double VisualAngleSpan,
float LineWidth,
FColor Color,
bool bDepthTested,
FPrimitiveDrawInterface * PDI,
const FTransform & Transform
)
}
Remarks
Draw a basic 2D grid with a given number of lines that covers roughly a constant area of the screen
Parameters
| Name | Description |
|---|---|
| CameraState | camera state, required to size grid appropriately |
| LocalFrame | Pre-transform frame of grid (grid lies in XY plane). |
| NumGridLines | number of grid lines. If odd, there is a center-line, if even then frame center is at center of a grid square |
| VisualAngleSpan | visual angle that grid should cover (in degrees, relative to default 90-degree FOV) |
| LineWidth | thickness of the lines in screen space |
| Color | color of the lines |
| bDepthTested | drawing depth priority |
| PDI | drawing interface |
| Transform | transform applied to LocalFrame. Pass as Identity() if you have world frame. |