IrrAddMeshToSceneAsOcttree

section index

## NAME

IrrAddMeshToSceneAsOcttree - Adds a Mesh as Octtree

## SYNOPSIS

*SceneNode.l = IrrAddMeshToSceneAsOcttree(*mesh.l)

## FUNCTION

Adds a scene node for rendering using a octtree to the scene graph. This a good method for rendering scenes with lots of geometry. The Octree is built on the fly from the mesh.

## INPUTS

*mesh.l | - | pointer to a loaded/catched or created Mesh.

## RESULT

Pointer to a SceneNode

## EXAMPLE

       *mesh.l = IrrGetMesh("MyOwnMesh.dmf")
       If *mesh = #Null
           *node.l = IrrAddMeshToSceneAsOcttree(*mesh.l)
       EndIf