예제 #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));
        }
예제 #2
0
        internal static ThreeMfColor ParseColor(XElement element)
        {
            var color = ThreeMfsRGBColor.Parse(element.AttributeValueOrThrow(ColorAttributeName));

            return(new ThreeMfColor(color));
        }
예제 #3
0
 public ThreeMfColor(ThreeMfsRGBColor color)
 {
     Color = color;
 }
예제 #4
0
 public ThreeMfBase(string name, ThreeMfsRGBColor color)
 {
     Name  = name;
     Color = color;
 }