Esempio n. 1
0
 public static IEnumerable <ColorOrNormalised> ToColorChannnel(this IIfcSurfaceStyleLighting sl)
 {
     return(new ColorOrNormalised[]
     {
         new ColorOrNormalised()
         {
             Channel = ColorChannel.Diffuse,
             Color = sl.DiffuseReflectionColour.ToColor()
         },
         new ColorOrNormalised()
         {
             Channel = ColorChannel.DiffuseEmmisive,
             Color = sl.DiffuseTransmissionColour.ToColor()
         },
         new ColorOrNormalised()
         {
             Channel = ColorChannel.Emmisive,
             Color = sl.TransmissionColour.ToColor()
         },
         new ColorOrNormalised()
         {
             Channel = ColorChannel.Reflective,
             Color = sl.ReflectanceColour.ToColor()
         }
     }.OfType <ColorOrNormalised>());
 }
Esempio n. 2
0
 private void AddLighting(IIfcSurfaceStyleLighting lighting)
 {
     DiffuseReflectionColour   = new XbimColour(lighting.DiffuseReflectionColour);
     DiffuseTransmissionColour = new XbimColour(lighting.DiffuseTransmissionColour);
     TransmissionColour        = new XbimColour(lighting.TransmissionColour);
     ReflectanceColour         = new XbimColour(lighting.ReflectanceColour);
 }