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); }
private void AddColour(IfcSurfaceStyleShading shading) { ColourMap.Add(new XbimColour(shading.SurfaceColour)); }
public XbimTexture CreateTexture(IfcSurfaceStyleShading shading) { DefinedObjectId = (int)shading.EntityLabel; ColourMap.Clear(); if (shading is IfcSurfaceStyleRendering) AddColour((IfcSurfaceStyleRendering)shading); else AddColour(shading); return this; }