- 授权协议: 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
Django企业开发实战
胡阳 / 人民邮电出版社 / 2019-2 / 99.00元
本书以博客系统贯穿始末,介绍了Django的方方面面。书中共分四部分,第一部分介绍了正式进入编码之前的准备工作,内容包括需求分析、基础知识和Demo系统的开发;第二部分开始实现需求,内容涉及环境配置、编码规范以及项目结构规划,编写了Model层、admin页面、Form代码和View逻辑,引入了Bootstrap框架;第三部分重点介绍xadmin、django-autocomple-light和d......一起来看看 《Django企业开发实战》 这本书的介绍吧!
