예제 #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;
 }