ProgressiveMesh.NumberVertices Property

Language:

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

Definition

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

Parameters

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

Property Value

System.Int32

This property is write-only. 

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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