Share via


ProgressiveMesh.TrimByFaces(Int32,Int32,Int32,Int32) Method (Microsoft.DirectX.Direct3D)

Modifies the minimum and maximum level of detail (LOD) of a ProgressiveMesh object.

Definition

Visual Basic Public Sub TrimByFaces( _
    ByVal newFacesMin As Integer, _
    ByVal newFacesMax As Integer, _
    ByRef faceRemap As Integer, _
    ByRef vertRemap As Integer _
)
C# public void TrimByFaces(
    int newFacesMin,
    int newFacesMax,
    out int faceRemap,
    out int vertRemap
);
C++ public:
void TrimByFaces(
    int newFacesMin,
    int newFacesMax,
    [Out] intfaceRemap,
    [Out] intvertRemap
);
JScript public function TrimByFaces(
    newFacesMin : int,
    newFacesMax : int,
    faceRemap : int,
    vertRemap : int
);

Parameters

newFacesMin System.Int32
New minimum number of faces. This value must fall between the current minimum and maximum number of faces.
newFacesMax System.Int32
New maximum number of faces. This value must fall between the current minimum and maximum number of faces.
faceRemap System.Int32[]
Array of one Int32Leave Site value per face that contains face remap information.
vertRemap System.Int32[]
Array of one Int32Leave Site value per vertex that contains vertex remap information.

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.

See Also