private static void ProcessDebug(Vector3 pPoint, int pPointIndex) { if (pPointIndex == 2899) { return; } if (CDebug.IsDebugPoint3D(pPoint)) { return; } if (CDebug.IsDebugPoint(pPoint)) { return; } }
public void AddPointInField(Vector3 pPoint, bool pLogErrorInAnalytics = true) { if (CDebug.IsDebugPoint(pPoint)) { //CDebug.WriteLine(""); } Tuple <int, int> index = GetIndexInArray(pPoint); if (!IsWithinBounds(index)) { CDebug.Error($"point {pPoint} is OOB {index}", pLogErrorInAnalytics); index = GetIndexInArray(pPoint); return; } TypeField field = array[index.Item1, index.Item2]; if (field.IsPointOutOfField(pPoint)) { CDebug.Error($"point {pPoint} is too far from center {field.Center}"); index = GetIndexInArray(pPoint); field.IsPointOutOfField(pPoint); } if (pPoint.Z > MaxHeight) { MaxHeight = pPoint.Z; } if (pPoint.Z < MinHeight) { MinHeight = pPoint.Z; } pointsCount++; sumZ += pPoint.Z; array[index.Item1, index.Item2].AddPoint(pPoint); }