GetTerrainTextureOffset

This method gets the offset between the physical location of the building and the outline of the roof as it appears in the terrain image.

This offset is used to apply terrain texture for the roof and the walls.

Note: Pictures of buildings that are taken from the same angle have the same TerrainTextureOffset to Building Height ratio.

 

HRESULT GetTerrainTextureOffset(

 [out] VARIANT* doubleOffX,

 [out] VARIANT* doubleOffY);

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.