Commit 0ffc85f7 authored by Moritz's avatar Moritz

VectorFieldWriter, VTKDataReader, PointCoudToGridMapper: removed Debug.Log...

VectorFieldWriter, VTKDataReader, PointCoudToGridMapper: removed Debug.Log lines, FileNameFinder: renamed variables for better readability
parent 58a5fc1f
......@@ -9,26 +9,24 @@ namespace Teamproject {
DirectoryInfo dir = new DirectoryInfo(PathToFolder);
FileInfo[] files = dir.GetFiles();
//look for cel file -> get name of all other files alse
FileInfo celFile = default;
//look for wanted file extension
FileInfo file = default;
foreach (FileInfo f in files) {
if (f.Extension == extensionName) {
celFile = f;
file = f;
break;
}
}
string filenames = celFile.Name;
string filename = file.Name;
//remove extension
var parts = filenames.Split('.');
filenames = parts[0];
var parts = filename.Split('.');
filename = parts[0];
for (int i = 1; i < parts.Length - 1; i++)
filenames += "." + parts[i];
filename += "." + parts[i];
Debug.Log("Filenames: " + filenames);
return filenames;
return filename;
}
}
}
\ No newline at end of file
......@@ -74,8 +74,6 @@ namespace Teamproject {
}
public void StartConvert() {
Debug.Log("PointCloudToGridMapper: " + _points.Count + " point to map onto grid");
CreateGrid();
AlignPointsToCoordinateOrigin();
CreateNeighborhoodListsForGridPoints();
......@@ -133,8 +131,6 @@ namespace Teamproject {
gridSize = new Vector3(gridXSize - 1, gridYSize - 1, gridZSize - 1); // -1 because following array is 0 based
directionGrid = new Vector3[gridXSize, gridYSize, gridZSize];
info = new float[gridXSize, gridYSize, gridZSize];
Debug.Log("Grid size: " + gridSize);
}
private void AlignPointsToCoordinateOrigin() {
......
......@@ -100,8 +100,6 @@ namespace Teamproject {
}
private void WriteHeaderVEC() {
Debug.Log("Writing VF-Header");
//first line
sr.Write(BitConverter.GetBytes('V'), 0, 1);
sr.Write(BitConverter.GetBytes('F'), 0, 1);
......@@ -115,8 +113,6 @@ namespace Teamproject {
}
private void WriteDataVEC() {
Debug.Log("Writing data to file");
// "Elements are packed as an array of struct, organized by X then Y then Z." -> loops order important
for (int z = 0; z < _gridsize.z; z++) {
for (int y = 0; y < _gridsize.y; y++) {
......@@ -170,8 +166,6 @@ namespace Teamproject {
}
private void WriteHeaderFLOAT() {
Debug.Log("Writing VF-Header");
//first line
sr.Write(BitConverter.GetBytes('V'), 0, 1);
sr.Write(BitConverter.GetBytes('F'), 0, 1);
......@@ -185,8 +179,6 @@ namespace Teamproject {
}
private void WriteDataFLOAT() {
Debug.Log("Writing data to file");
// "Elements are packed as an array of struct, organized by X then Y then Z." -> loops order important
for (int z = 0; z < _gridsize.z; z++)
for (int y = 0; y < _gridsize.y; y++)
......
......@@ -112,8 +112,6 @@ namespace Teamproject {
storage.Clear();
pointID++;
}
Debug.Log("ReadPoints: " + points.Count + " from " + pointCount);
}
private void ReadCells() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment