Microsoft DirectX 9.0 SDK Update (October 2004)

ProgressiveMesh.NumberVertices Property

Language:

Note: This documentation is preliminary and is subject to change.

Sets the current level of detail (LOD) to as close to the specified number of vertices as possible.

Definition

Visual Basic .NET Public Property NumberVertices( _
    ByVal vertices As Integer _
) As Integer
C# public int this[
    int vertices
] { set; }
Managed C++ public: __property void set_NumberVertices(
    int vertices,
    int
);
JScript .NET In JScript .NET, you can use indexed properties, but you cannot define your own.

Property Value

System.Int32 .

This property is write-only. 

Parameters

vertices System.Int32. Target number of vertices. This value specifies the desired change in the LOD.

Remarks

If the number of vertices is greater than the maximum allowed, it is capped at the maximum number of vertices returned by ProgressiveMesh.MaxVertices. If the number of vertices is less than the minimum required, it is capped at the minimum number of vertices returned by ProgressiveMesh.MinVertices.

After this method is called, the number of faces might be slightly off, because edge collapse can sometimes introduce or remove a few faces. For example, setting the number of faces to an intermediate value such as 5, when 4 and 6 are possible, always produces a result of 4.

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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center