IrrGetStaticFromMesh

section index

## NAME

IrrGetStaticFromMesh - Get the Static of a Animated Mesh

## SYNOPSIS

*Mesh.l = IrrGetStaticFromMesh(*animatedMesh.l [,frameNumber.l])

## FUNCTION

Returns pointer to an static mesh, from e Animated Mesh. It is important, since IrrGetMesh() loads only AnimatedMeshes. But some Functions (like IrrAddWaterScenenNode() ) need a static Mesh. If you load a 'static mesh' with IrrGetMesh(), then it is loaded as a animated Mesh with only one Frame (FrameNumber=0) !

## INPUTS

*animatedMesh | - | pointer to a previously loaded Mesh.
frameNumber.l | - | (Optional) number of the Frame, if it was a Animated one.

## RESULT

Pointer to the static Mesh if Successfull, otherwise #Null

## EXAMPLE

       *mesh.l = IrrGetMesh("MyOwnMesh.dmf")
       If *mesh <> #Null
           *staticMesh.l = IrrGetStaticFromMesh(*mesh,0)
       EndIf

## NOTES