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

Function get_bounding_box

samples/SimpleOpenGL/Sample_SimpleOpenGL.c:120–128  ·  view source on GitHub ↗

---------------------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

118
119/* ---------------------------------------------------------------------------- */
120void get_bounding_box(C_STRUCT aiVector3D* min, C_STRUCT aiVector3D* max)
121{
122 C_STRUCT aiMatrix4x4 trafo;
123 aiIdentityMatrix4(&trafo);
124
125 min->x = min->y = min->z = 1e10f;
126 max->x = max->y = max->z = -1e10f;
127 get_bounding_box_for_node(scene->mRootNode,min,max,&trafo);
128}
129
130/* ---------------------------------------------------------------------------- */
131void color4_to_float4(const C_STRUCT aiColor4D *c, float f[4])

Callers 1

loadassetFunction · 0.70

Calls 2

aiIdentityMatrix4Function · 0.85

Tested by

no test coverage detected