public static IG3D ReplaceAttribute(this IG3D g3d, IAttribute attr) => g3d.AttributesExcept(attr.Descriptor).Concat(new[] { attr }).ToG3D();