DirectX9 3D Quick Start 7

Source: Internet
Author: User
Here I want to continue to write something about mesh, after all, we may need to have a lot of other requirements for it. In the actual use of 3D games, generally use a low polygon model, called low modulus. In order to have a better speed to run the game, just DX has provided us with such a function to let us control the complexity of the read mesh.
public void Weldvertices (
Microsoft.DirectX.Direct3D.WeldEpsilonsFlags flags,//Flags
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 achieve the goal of simplifying the model, the first 2 parameters are used to determine how to simplify the model,
The first sign altogether consists of the following several:
Member
Value
Description
Donotsplit
8
Instructs the weld to allow vertices to is modified only, not removed. This flag was valid only if Weldpartialmatches is set. It is useful to modify vertices so they are equal, and but not to allow vertices.
Cannot take effect until the Weldpartialmatches parameter is specified, no separation point is allowed
Donotremovevertices
4
Instructs the weld to allow vertices to is modified only, not removed. This flag was valid only if Weldpartialmatches is set. It is useful to modify vertices to being equal, but not to allow vertices.
can only be effective when the Weldpartialmatches parameter is specified, you cannot remove a point, you can only modify
Weldpartialmatches
2
If a given vertex component is within Epsilon, instructs the weld to modify partially the matched of so vertices both Ents are equal. If All components are equal, one of the vertices is removed.

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.