computeLocalAABB method
Compute the local AABB for the trimesh
Implementation
void computeLocalAABB(AABB aabb) {
final l = aabb.lowerBound;
final u = aabb.upperBound;
final v = _computeLocalAABBWorldVert;
getVertex(0, v);
l.copy(v);
u.copy(v);
for (int i = 0; i < vertices.length/3; i++) {//!= n
getVertex(i, v);
if (v.x < l.x) {
l.x = v.x;
} else if (v.x > u.x) {
u.x = v.x;
}
if (v.y < l.y) {
l.y = v.y;
} else if (v.y > u.y) {
u.y = v.y;
}
if (v.z < l.z) {
l.z = v.z;
} else if (v.z > u.z) {
u.z = v.z;
}
}
}