Esempio n. 1
0
        internal static ThreeMfBase ParseBaseMaterial(XElement baseElement)
        {
            var name  = baseElement.AttributeValueOrThrow(NameAttributeName);
            var color = ThreeMfsRGBColor.Parse(baseElement.AttributeValueOrThrow(DisplayColorAttributeName));

            return(new ThreeMfBase(name, color));
        }
Esempio n. 2
0
        internal static ThreeMfColor ParseColor(XElement element)
        {
            var color = ThreeMfsRGBColor.Parse(element.AttributeValueOrThrow(ColorAttributeName));

            return(new ThreeMfColor(color));
        }
Esempio n. 3
0
 public ThreeMfColor(ThreeMfsRGBColor color)
 {
     Color = color;
 }
Esempio n. 4
0
 public ThreeMfBase(string name, ThreeMfsRGBColor color)
 {
     Name  = name;
     Color = color;
 }