code: public Point3D getXYZ() {
  		if (isEmptyImpl())
  			throw new GeometryException(
  					"This operation should not be performed on an empty geometry.");
  
  		Point3D pt = new Point3D();
  		pt.x = m_attributes[0];
  		pt.y = m_attributes[1];
  		if (m_description.hasZ())
  			pt.z = m_attributes[2];
  		else
  			pt.z = VertexDescription.getDefaultValue(Semantics.Z);
  
  		return pt;
  	}
docs: Returns XYZ coordinates of the point. Z will be set to 0 if Z is missing.