code: void addGeometry(Geometry geometry) {
  		if (geometry.isEmpty())
  			return;
  		
  		int type = geometry.getType().value();
  
  		if (MultiVertexGeometry.isMultiVertex(type))
  			addMultiVertexGeometry_((MultiVertexGeometry) geometry);
  		else if (MultiPath.isSegment(type))
  			addSegment_((Segment) geometry);
  		else if (type == Geometry.GeometryType.Envelope)
  			addEnvelope_((Envelope) geometry);
  		else if (type == Geometry.GeometryType.Point)
  			addPoint_((Point) geometry);
  		else
  			throw new IllegalArgumentException("invalid shape type");
  	}
docs: Adds a geometry to the current bounding geometry using an incremental algorithm for dynamic insertion.
  @param geometry The geometry to add to the bounding geometry.