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

Function FindMeshCenterTransformed

code/PostProcessing/ProcessHelper.cpp:116–120  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

114
115// -------------------------------------------------------------------------------
116void FindMeshCenterTransformed(aiMesh *mesh, aiVector3D &out, aiVector3D &min,
117 aiVector3D &max, const aiMatrix4x4 &m) {
118 FindAABBTransformed(mesh, min, max, m);
119 out = min + (max - min) * (ai_real)0.5;
120}
121
122// -------------------------------------------------------------------------------
123void FindMeshCenter(aiMesh *mesh, aiVector3D &out) {

Callers 2

ComputePlaneMappingMethod · 0.85

Calls 1

FindAABBTransformedFunction · 0.85

Tested by

no test coverage detected