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; }
public XbimColour(IfcSurfaceStyle style) { }