Пример #1
0
        public void HSFaddFaceRegion(cl_DataStore SaveData, String str_FileName)
        {
            string message;

            try
            {
                koponettimaara++;
                if (koponettimaara == 82)
                {
                    koponettimaara = 82;
                }
                writer.addFaceRegion(SaveData.PartName, SaveData.Vertices, SaveData.Normals, SaveData.TextureCoords,
                                     SaveData.Indices, SaveData.UVertexCount, SaveData.UIndexCount, SaveData.Features, SaveData.UFeatureCount);
                //message = "       AddFaceRegion :" + SaveData.PartName +
                //    " VER: " + SaveData.Vertices.Length.ToString() +
                //    " Nor: " + SaveData.Normals.Length.ToString() +
                //    "  TC: " + SaveData.TextureCoords.Length.ToString() +
                //    " Ind: " + SaveData.Indices.Length.ToString() +
                //    " FeaC: " + SaveData.Features.Length.ToString() +
                //    " nro: " + koponettimaara + Environment.NewLine;
                //File.AppendAllText(@"C:\CadFaster\Revit\" + str_FileName + ".txt", message);
            }
            catch (Exception e)
            {
                // Exception rised, report it by revit error reporting mechanism.
                message = "ERROR: AddFaceRegion " + SaveData.PartName +
                          " VER: " + SaveData.Vertices.Length.ToString() +
                          " Nor: " + SaveData.Normals.Length.ToString() +
                          "  TC: " + SaveData.TextureCoords.Length.ToString() +
                          " Ind: " + SaveData.Indices.Length.ToString() +
                          " FeaC: " + SaveData.Features.Length.ToString() +
                          " nro: " + koponettimaara + Environment.NewLine;
                File.AppendAllText(@"C:\CadFaster\Revit\" + str_FileName + ".txt", message);
                message = e.ToString();
            }
        }
Пример #2
0
 public void addFaceRegion()
 {
     // Import geometry to the sample part (single triangle in this case
     //addFaceRegion("SamplePart", vertex, normals, textureCoords, indices, vertexCount, indexCount, features, 2);
     writer.addFaceRegion("SamplePart", vertices, normals, textureCoords, indices, 8, 16, features, 2);
 }