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::DrawSimpleGrid
(
const FFrame3d & LocalFrame,
int GridLines,
double GridLineSpacing,
float LineWidth,
FColor Color,
bool bDepthTested,
FPrimitiveDrawInterface * PDI,
const FTransform & Transform
)
}
Remarks
Draw a basic 2D grid with a number of lines at given spacing
Parameters
| Name | Description |
|---|---|
| LocalFrame | Pre-transform frame of grid (grid lies in XY plane). |
| GridLines | number of grid lines. If odd, there is a center-line, if even then frame center is at center of a grid square |
| GridLineSpacing | spacing size between grid lines |
| 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. |