Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · member function

FOrreryTerrainMaskContourCache::

Get

Editor only

The contour of Mask at Angle, computed on the first ask and cached.

Declaration

const TArray<FVector2D>& Get(const OrreryTerrain::Native::FBrushMask& Mask, uint16 Angle, bool bMirror, double Aspect = 1.0);
Header
#include "Tools/OrreryTerrainMaskPreview.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor"); in an editor module’s Build.cs: an editor module, not in packaged games.
Stability
Stable: changes within a major version only add.
Thread
Game thread, editor only. (the rule of FOrreryTerrainMaskContourCache)

Parameters

NameTypeDefaultMeaning
Maskconst OrreryTerrain::Native::FBrushMask&—

The mask; its content hash keys the cache.

Angleuint16—

The dab's angle, 1/65536 of a turn (FBrush::MaskAngle).

bMirrorbool—

Reverse the columns before the rotation.

Aspectdouble1.0

The mask's width over its height (FOrreryTerrainBrushBP::MaskAspect); 1 for a square mask.

Returns

Pairs of points, one segment each; empty for a mask with no sample on both sides of one half.