OpenMetaverse Protocol Library Developers API Documentation
CreateLandPacket Method (heightmap, patches)
NamespacesOpenMetaverse TerrainCompressorCreateLandPacket( array< Single > [] () [] [] , array< Int32 > [] () [] [] )
Creates a LayerData packet for compressed land data given a full simulator heightmap and an array of indices of patches to compress
Declaration Syntax
C#
public 
static 
LayerDataPacket 
CreateLandPacket(
        
float[] 
heightmap,
        
int[] 
patches
)
Parameters
heightmap ( array< Single > [] () [] [] )
A 256 * 256 array of floating point values specifying the height at each meter in the simulator
patches ( array< Int32 > [] () [] [] )
Array of indexes in the 16x16 grid of patches for this simulator. For example if 1 and 17 are specified, patches x=1,y=0 and x=1,y=1 are sent
Return Value

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)