Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/MeshDebugDrawing.h |
Include |
#include "Drawing/MeshDebugDrawing.h" |
Source |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/MeshDebugDrawing.cpp |
namespace MeshDebugDraw
{
void MeshDebugDraw::DrawSimpleGrid
(
const FFrame3f & LocalFrame,
int GridLines,
float GridLineSpacing,
float LineWidth,
FColor Color,
bool bDepthTested,
FPrimitiveDrawInterface * PDI,
const FTransform & Transform
)
}
Draw a basic 2D grid with a number of lines at given spacing
Parameter |
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 |
DepthPriority |
drawing depth priority |
PDI |
drawing interface |
Transform |
transform applied to LocalFrame. Pass as Identity() if you have world frame. |