DirectX9 3D Quick Start 7

Source: Internet
Author: User

Here I want to continue writing something related to the Mesh. After all, we may need to have many other requirements for it. In practical use of 3D games, low polygon models are generally used. In this way, we can have a better speed to run the game. In fact, DX provides us with such a function that allows us to control the complexity of the read Mesh.
Public void WeldVertices (
Microsoft. DirectX. Direct3D. WeldEpsilonsFlags flags, // flag
Microsoft. DirectX. Direct3D. WeldEpsilons epsilons,
Microsoft. DirectX. Direct3D. GraphicsStream adjacencyIn,
Microsoft. DirectX. Direct3D. GraphicsStream adjacencyOut,
Out int [] faceRemap,
Microsoft. DirectX. Direct3D. GraphicsStream vertexRemap)
This method can simplify the model. The first two parameters are used to determine how to simplify the model,
The first sign includes the following:
Member
Value
Description
DoNotSplit
8
Instructs the weld to allow vertices to be modified only, not removed. this flag is valid only if WeldPartialMatches is set. it is useful to modify vertices so that they are equal, but not to allow vertices to be removed.
It takes effect only when WeldPartialMatches parameter is specified.
DoNotRemoveVertices
4
Instructs the weld to allow vertices to be modified only, not removed. this flag is valid only if WeldPartialMatches is set. it is useful to modify vertices to be equal, but not to allow vertices to be removed.
The specified WeldPartialMatches parameter takes effect only when it is specified. The specified point cannot be removed and can only be modified.
WeldPartialMatches
2
If a given vertex component is within epsilon, instructs the weld to modify partially matched vertices so that both components are equal. If all components are equal, one of the vertices is removed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.