
DirectXMesh geometry processing library
http://go.microsoft.com/fwlink/?LinkID=324981
Copyright (c) Microsoft Corporation.
October 27, 2025
This package contains DirectXMesh, a shared source library for performing various geometry content processing operations including generating normals and tangent frames, triangle adjacency computations, vertex cache optimization, and meshlet generation.
This code is designed to build with Visual Studio 2019 (16.11), Visual Studio 2022, clang for Windows v12 or later, or MinGW 12.2. Use of the Windows 10 May 2020 Update SDK (19041) or later is required for Visual Studio. It can also be built for Windows Subsystem for Linux using GCC 11 or later.
These components are designed to work without requiring any content from the legacy DirectX SDK. For details, see Where is the DirectX SDK?.
Directory Layout
-
DirectXMesh\
- This contains the DirectXMesh library.
> The majority of the header files here are intended for implementation the library only (DirectXMeshP.h, scoped.h, etc.). Only DirectXMesh.h and DirectXMesh.inl are meant as a 'public' headers for the library.
-
Utilities\
- This contains helper code related to mesh processing that is not general enough to be part of the DirectXMesh library.
WaveFrontReader.h: Contains a simple C++ class for reading mesh data from a WaveFront OBJ file.
FlexibleVertexFormat.h: Contains helpers for working with Direct3D 9 style "FVF" codes.
-
Meshconvert\
- This DirectXMesh sample is an implementation of the
meshconvert command-line texture utility from the legacy DirectX SDK utilizing DirectXMesh rather than D3DX.
> This tool does not support legacy .X files, but can export CMO, SDKMESH, and VBO files.
-
build\
- Contains miscellaneous build files and scripts.
Documentation