Esempio n. 1
0
 private static void SetDecors(ModelDoc2 mainModel,Feature edge,string textureFilePath)
 {
     //if (textureFilePath.Contains("none"))
     //    textureFilePath = textureFilePath.Replace("jpg", "p2m");
     var texture = mainModel.Extension.CreateTexture(textureFilePath, 20, 0, false);
     edge.RemoveTexture(true, string.Empty);
     edge.SetTexture(true, string.Empty, texture);
 }