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::DrawHierarchicalGrid
(
double BaseGridScale,
double GridZoomFactor,
int32 MaxLevelDensity,
const FVector & WorldMaxBounds,
const FVector & WorldMinBounds,
int32 Levels,
int32 Subdivisions,
TArray < FColor > & Colors,
const FFrame3d & LocalFrame,
float LineWidth,
bool bDepthTested,
FPrimitiveDrawInterface * PDI,
const FTransform & Transform
)
}
Remarks
Draw a zoomable, hierarchical grid with configurable depth and density terms
Parameters
| Name | Description |
|---|---|
| BaseGridScale | At 1.0 zoom, what is the distance between the top most (level 0) grid lines |
| GridZoomFactor | A pseudo zoom factor, where a value of 1.0 represents the baseline grid scaling with BaseScale the distance between coarsest grid lines. |
| MaxLevelDensity | The maximum number of lines to draw at any given grid level |
| Levels | Number of hierarchy levels to draw. 1 level is equivalent to a simple grid |
| Subdivisions | Number of gridlines inserted between lines of a higher level |
| Colors | Array containing colors to use for the grid levels. Must include at least one color. If fewer colors than levels are provided, last color will be repeated as needed. |
| LocalFrame | Pre-transform frame of grid (grid lies in XY plane). |
| LineWidth | thickness of the lines in screen space |
| bDepthTested | drawing depth priority |
| PDI | drawing interface |
| Transform | transform applied to LocalFrame. Pass as Identity() if you have world frame. |