GroundEffect

new SuperMap3D.GroundEffect(options)

Effects classes for covering ground and Bim models
Name Type Description
options Object optional Object with the following properties:
Name Type Default Description
scene Scene optional Current 3D scene
show Boolean true optional Whether to show.
positions Array [] optional Effect coverage, [100, 30, 120, 30, 120, 25, 100, 25]
color Color BLACK optional Effect color
maxTerrainHeight Number optional Effect coverage maximum height
minTerrainHeight Number optional Effect coverage minimum height
id String optional Effect ID
Example:
// Example 1: Create primitive with a single instance
var groundEfficiency = new MGIS_SuperMap3D.GroundEffect({
  scene: scene,
  id: "GroundEffect",
  color: MGIS_SuperMap3D.Color.BLACK.withAlpha(0.7),
  positions: [
      116.45176403038715, 39.91854121757242,
      116.45476259428729, 39.917860169814084,
      116.45474818632952, 39.91702445884773,
      116.45183404482059, 39.91703150007755,
      ],
   maxTerrainHeight: 70,
   minTerrainHeight: 10
});

Members

color : Color

Effect color
Default Value: BLACK

maxTerrainHeight : Number

Effect coverage maximum height
Default Value: undefined

minTerrainHeight : Number

Effect coverage minimum height
Default Value: undefined

positions : Array

Range polygon point string (unit latitude and longitude, no height required)
Default Value: []

show : Boolean

Whether to show
Default Value: true

Methods

destroy()

Destroy effect

initialize()

Initialize effect