iplStaticMeshCreate

Function iplStaticMeshCreate 

Source
pub unsafe extern "C" fn iplStaticMeshCreate(
    scene: IPLScene,
    settings: *mut IPLStaticMeshSettings,
    staticMesh: *mut IPLStaticMesh,
) -> IPLerror
Expand description

Creates a static mesh.

A static mesh represents a triangle mesh that does not change after it is created. A static mesh also contains an array of acoustic material properties, and a mapping between each of its triangles and their acoustic material properties.

Static mesh objects should be used for scene geometry that is guaranteed to never change, such as rooms, buildings, or triangulated terrain. A scene may contain multiple static meshes, although typically one is sufficient.

\param scene The scene in which the static mesh should be created. \param settings The settings to use when creating the static mesh. \param staticMesh [out] The created static mesh.

\return Status code indicating whether or not the operation succeeded.