MCPcopy Create free account
hub / github.com/assimp/assimp / FindMeshCenter

Function FindMeshCenter

code/PostProcessing/ProcessHelper.cpp:87–90  ·  view source on GitHub ↗

-------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

85
86// -------------------------------------------------------------------------------
87void FindMeshCenter(aiMesh *mesh, aiVector3D &out, aiVector3D &min, aiVector3D &max) {
88 ArrayBounds(mesh->mVertices, mesh->mNumVertices, min, max);
89 out = min + (max - min) * (ai_real)0.5;
90}
91
92// -------------------------------------------------------------------------------
93void FindSceneCenter(aiScene *scene, aiVector3D &out, aiVector3D &min, aiVector3D &max) {

Callers 4

FindSceneCenterFunction · 0.85
ComputeSphereMappingMethod · 0.85
ComputePlaneMappingMethod · 0.85

Calls 1

ArrayBoundsFunction · 0.85

Tested by

no test coverage detected