- 授权协议: 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
微信营销与运营一册通
何秀芳、葛存山 / 人民邮电出版社 / 2014-10
《微信营销与运营一册通》深入介绍了当今最为火热的话题——微信营销,内容全面、系统和深入。它基于微信的最新版本,从策略、技巧与案例等多角度详细解析了微信的营销与运营,所有内容都是行业经验的结晶,旨在为企业或个人运用微信提供有价值的参考。《微信营销与运营一册通》主要内容如下。 * 5大微信营销利器:书中介绍了5大微信营销利器,包括漂流瓶、二维码、LBS功能、朋友圈和公众平台等。 * 6大微......一起来看看 《微信营销与运营一册通》 这本书的介绍吧!
