computeBoundingBox method
void
computeBoundingBox()
override
Implementation
void computeBoundingBox() {
if ( this.boundingBox == null ) {
this.boundingBox = BoundingBox();
}
final geometryCount = _geometryCount;
final boundingBox = this.boundingBox;
final active = _active;
boundingBox?.empty();
for (int i = 0; i < geometryCount; i ++ ) {
if ( active[ i ] == false ) continue;
getMatrixAt( i, _matrix );
getBoundingBoxAt( i, _box ).applyMatrix4( _matrix );
boundingBox?.union( _box );
}
}