예제 #1
0
        private void ReadXYZFile(string fileName)
        {
            this.FileNameLong = fileName;
            IOUtils.ExtractDirectoryAndNameFromFileName(this.FileNameLong, ref this.FileNameShort, ref this.Path);

            List <Vector3> colors         = new List <Vector3>();
            List <Vector3> normals        = new List <Vector3>();
            List <uint>    indices        = new List <uint>();
            List <uint>    indicesNormals = new List <uint>();
            List <uint>    indicesTexture = new List <uint>();

            List <Vector3> vectors = UtilsPointCloudIO.FromXYZ_Vectors(fileName);

            for (uint i = 0; i < vectors.Count; i++)
            {
                indices.Add(i);
                colors.Add(new Vector3(1f, 1f, 1f));
            }

            AssignData(vectors, colors, normals, indices, indicesNormals, indicesTexture);
        }
예제 #2
0
 public void ToObjFile(string fileNameWithPath)
 {
     UtilsPointCloudIO.ToObjFile(this, fileNameWithPath);
 }
예제 #3
0
 public void ToObjFile(string path, string fileName)
 {
     UtilsPointCloudIO.ToObjFile(this, path, fileName);
 }