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

Method InitializePatch

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

Source from the content-addressed store, hash-verified

304}
305
306bool TerrainTools::InitializePatch(Terrain* terrain, const Int2& patchCoord)
307{
308 CHECK_RETURN(terrain, true);
309 auto patch = terrain->GetPatch(patchCoord);
310 CHECK_RETURN(patch, true);
311 return patch->InitializeHeightMap();
312}
313
314bool TerrainTools::ModifyHeightMap(Terrain* terrain, const Int2& patchCoord, const float* samples, const Int2& offset, const Int2& size)
315{

Callers 1

DoMethod · 0.80

Calls 2

GetPatchMethod · 0.80
InitializeHeightMapMethod · 0.80

Tested by

no test coverage detected