drawPoi

fun drawPoi(engine: Engine, materialLoader: MaterialLoader?, polygonPath: List<Position2>, themeColors: MapThemeColors, parentPositionZ: Float = 0.1f, poi: Poi, selectedPoi: Int = -2): ShapeNode

Draw the poi in the 3D scene. It takes the engine, the color of the space, the material loader, the polygon path, and the parent position Z as parameters. It returns a ShapeNode object that represents the space in the 3D scene.

Return

a ShapeNode object that represents the space in the 3D scene

Parameters

engine

the engine object that contains the 3D scene

materialLoader

the material loader object that loads the material color of the poi

polygonPath

the polygon path that represents the space in the 3D scene

themeColors

the theme colors of the map

parentPositionZ

the parent position Z of the space

Throws

if the polygon path is not valid

if the material loader is null