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)); }
public ThreeMfColor(ThreeMfsRGBColor color) { Color = color; }
public ThreeMfBase(string name, ThreeMfsRGBColor color) { Name = name; Color = color; }