Exemplo n.º 1
0
        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
            IfcSurfaceStyleLighting root = (IfcSurfaceStyleLighting)obj;

            return(this == root);
        }
Exemplo n.º 2
0
 private void AddLighting(IfcSurfaceStyleLighting lighting)
 {
     DiffuseReflectionColour = new XbimColour(lighting.DiffuseReflectionColour);
     DiffuseTransmissionColour = new XbimColour(lighting.DiffuseTransmissionColour);
     TransmissionColour = new XbimColour(lighting.TransmissionColour);
     ReflectanceColour = new XbimColour(lighting.ReflectanceColour);
 }