MeshDebugDraw::DrawSimpleGrid

Draw a basic 2D grid with a number of lines at given spacing

Windows
MacOS
Linux

References

Module

ModelingComponents

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

Syntax

namespace MeshDebugDraw
{
    void MeshDebugDraw::DrawSimpleGrid
    (
        const FFrame3f & LocalFrame,
        int GridLines,
        float 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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss