computeBoundingBox method

void computeBoundingBox()
override

Implementation

void computeBoundingBox() {
	if ( this.boundingBox == null ) {
		this.boundingBox = BoundingBox();
	}

	final start = this.attributes['instanceStart'];
	final end = this.attributes['instanceEnd'];

	if ( start != null && end != null ) {
		this.boundingBox?.setFromBuffer( start );
		_box.setFromBuffer( end );
      this.boundingBox?.min.min( _box.min );
      this.boundingBox?.max.max( _box.max );
	}
}