Share via


ProgressiveMesh.OptimizeBaseLevelOfDetail(MeshFlags,Int32) Method (Microsoft.DirectX.Direct3D)

Optimizes the base level of detail (LOD) part of a ProgressiveMesh object.

Definition

Visual Basic Public Sub OptimizeBaseLevelOfDetail( _
    ByVal flags As MeshFlags, _
    ByRef faceRemap As Integer _
)
C# public void OptimizeBaseLevelOfDetail(
    MeshFlags flags,
    out int faceRemap
);
C++ public:
void OptimizeBaseLevelOfDetail(
    MeshFlags flags,
    [Out] intfaceRemap
);
JScript public function OptimizeBaseLevelOfDetail(
    flags : MeshFlags,
    faceRemap : int
);

Parameters

flags Microsoft.DirectX.Direct3D.MeshFlags
One or more Optimize* flags from the MeshFlags enumeration that specify the type of optimization to perform.
faceRemap System.Int32[]
Array of Int32Leave Site values that indicate how the triangles were rearranged.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.