- 授权协议: MIT
- 开发语言: C/C++
- 操作系统: Windows
- 软件首页: https://github.com/Microsoft/DirectXMesh
- 软件文档: https://github.com/Microsoft/DirectXMesh
软件介绍
DirectXMesh 是微软开发的 DirectX 的几何处理库。
示例代码:
std::unique_ptr<WaveFrontReader<uint16_t>> mesh( new WaveFrontReader<uint16_t>() ); if ( FAILED( mesh->Load( L"test.obj" ) ) ) // Error if ( mesh->hasNormals ) // Skip next computation size_t nFaces = mesh->indices.size() / 3; size_t nVerts = mesh->vertices.size(); std::unique_ptr<XMFLOAT3[]> pos( new XMFLOAT3[ nVerts ] ); for( size_t j = 0; j < nVerts; ++j ) pos[ j ] = mesh->vertices[ j ].position; std::unique_ptr<XMFLOAT3[]> normals( new XMFLOAT3[ nVerts ] ); if ( FAILED( ComputeNormals( &mesh->indices.front(), nFaces, pos.get(), nVerts, CNORM_DEFAULT, normals.get() ) ) ) // Error if ( !mesh->hasTexcoords ) // Skip next computation std::unique_ptr<XMFLOAT2[]> texcoords( new XMFLOAT2[ nVerts ] ); for( size_t j = 0; j < nVerts; ++j ) texcoords[ j ] = mesh->vertices[ j ].textureCoordinate; std::unique_ptr<XMFLOAT3[]> tangents( new XMFLOAT3[ nVerts ] ); std::unique_ptr<XMFLOAT3[]> bitangents( new XMFLOAT3[ nVerts ] ); if ( FAILED( ComputeTangentFrame( &mesh->indices.front(), nFaces, pos.get(), normals.get(), texcoords.get(), nVerts, tangents.get(), bitangents.get() ) ) ) // Error
UNIX编程艺术
[美] Eric S. Raymond / 姜宏、何源、蔡晓骏 / 电子工业出版社 / 2012-8 / 99.00元
《UNIX编程艺术》主要介绍了Unix系统领域中的设计和开发哲学、思想文化体系、原则与经验,由公认的Unix编程大师、开源运动领袖人物之一Eric S.Raymond倾力多年写作而成。包括Unix设计者在内的多位领域专家也为《UNIX编程艺术》贡献了宝贵的内容。《UNIX编程艺术》内容涉及社群文化、软件开发设计与实现,覆盖面广、内容深邃,完全展现了作者极其深厚的经验积累和领域智慧。一起来看看 《UNIX编程艺术》 这本书的介绍吧!
