示例#1
0
 public XbimTexture CreateTexture(IfcSurfaceStyleShading shading)
 {
     ColourMap.Clear();
     if (shading is IfcSurfaceStyleRendering)
         AddColour((IfcSurfaceStyleRendering)shading);
     else
         AddColour(shading);
     return this;
 }
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcSurfaceStyleShading root = (IfcSurfaceStyleShading)obj;

            return(this == root);
        }
示例#3
0
 private void AddColour(IfcSurfaceStyleShading shading)
 {
     ColourMap.Add(new XbimColour(shading.SurfaceColour));
 }
示例#4
0
 public XbimTexture CreateTexture(IfcSurfaceStyleShading shading)
 {
     DefinedObjectId = (int)shading.EntityLabel;
     ColourMap.Clear();
     if (shading is IfcSurfaceStyleRendering)
         AddColour((IfcSurfaceStyleRendering)shading);
     else
         AddColour(shading);
     return this;
 }