MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetHeightmapData

Method GetHeightmapData

Source/Editor/Tools/Terrain/TerrainTools.cpp:339–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339float* TerrainTools::GetHeightmapData(Terrain* terrain, const Int2& patchCoord)
340{
341 CHECK_RETURN(terrain, nullptr);
342 auto patch = terrain->GetPatch(patchCoord);
343 CHECK_RETURN(patch, nullptr);
344 return patch->GetHeightmapData();
345}
346
347byte* TerrainTools::GetHolesMaskData(Terrain* terrain, const Int2& patchCoord)
348{

Callers 3

ExportTerrainMethod · 0.45
GetAffectedPatchesMethod · 0.45
GetDataMethod · 0.45

Calls 1

GetPatchMethod · 0.80

Tested by

no test coverage detected