Exemplo n.º 1
0
        public void GivenTheResourceContainsAShadingDescriptionWithIdAndATextureLayerWithDimension(string modelName, int id, int dim)
        {
            ModelResource m1 = ScenarioContext.Current.Get<ModelResource>(modelName);

            ShadingDescription s1 = new ShadingDescription(id);
            s1.TextureCoordDimensionList.Add(dim);

            if (m1.Mesh != null) m1.Mesh.ShadingDescriptionList.Add(s1);
            else m1.LineSet.ShadingDescriptionList.Add(s1);

            ScenarioContext.Current.Set<ShadingDescription>(s1);
        }
Exemplo n.º 2
0
        public void GivenTheResourceContainsAShadingDescriptionWithId(string modelName, int id)
        {
            ModelResource m1 = ScenarioContext.Current.Get<ModelResource>(modelName);
            ShadingDescription s1 = new ShadingDescription(id);

            if (m1.Type == ModelType.MESH) m1.Mesh.ShadingDescriptionList.Add(s1);
            if (m1.Type == ModelType.LINE_SET) m1.LineSet.ShadingDescriptionList.Add(s1);

            ScenarioContext.Current.Set<ShadingDescription>(s1);
        }