internal static ThreeMfBase ParseBaseMaterial(XElement baseElement) { var name = baseElement.AttributeValueOrThrow(NameAttributeName); var color = ThreeMfsRGBColor.Parse(baseElement.AttributeValueOrThrow(DisplayColorAttributeName)); return(new ThreeMfBase(name, color)); }
internal static ThreeMfColor ParseColor(XElement element) { var color = ThreeMfsRGBColor.Parse(element.AttributeValueOrThrow(ColorAttributeName)); return(new ThreeMfColor(color)); }