draw Poi
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
material Loader
the material loader object that loads the material color of the poi
polygon Path
the polygon path that represents the space in the 3D scene
theme Colors
the theme colors of the map
parent Position Z
the parent position Z of the space
Throws
if the polygon path is not valid
if the material loader is null