Esempio n. 1
0
 public XbimTexture CreateTexture(IfcSurfaceStyle surfaceStyle)
 {
     //set render one or both faces
     renderBothFaces = (surfaceStyle.Side == IfcSurfaceSide.BOTH);
     //switch if required
     switchFrontAndRearFaces = (surfaceStyle.Side == IfcSurfaceSide.NEGATIVE);
     ColourMap.Clear();
     foreach (var style in surfaceStyle.Styles)
     {
         if (style is IfcSurfaceStyleRendering) AddColour((IfcSurfaceStyleRendering)style);
         else if (style is IfcSurfaceStyleShading) AddColour((IfcSurfaceStyleShading)style);
         else if (style is IfcSurfaceStyleLighting) AddLighting((IfcSurfaceStyleLighting)style);
     }
     return this;
 }
Esempio n. 2
0
 public XbimColour(IfcSurfaceStyle style)
 {
 }