private void OnGUI()
 {
     if (GUILayout.Button("btn"))
     {
         //_points = GenerateMemoryRandomSet2D(GenerateRadius, GenerateCountMin, GenerateCountMax, CoeffX, CoeffY);
         ConcaveHull.Create2D(_points, out _indicesConcave, out _indicesConvex, Threshold);
     }
 }
        private void Update()
        {
            if (ToggleToGenerate != _previous)
            {
                if (SourcePoints != null)
                {
                    _points = SourcePoints.Array;
                }
                else
                {
                    _points = GenerateMemoryRandomSet2D(GenerateRadius, GenerateCountMin, GenerateCountMax, CoeffX, CoeffY);
                }

                bool created = ConcaveHull.Create2D(_points, out _indicesConcave, out _indicesConvex, Threshold);
                Logger.LogInfo("Created: " + created + "   ConvexIndexCount: " + _indicesConvex.Length + "   ConcaveIndexCount: " + _indicesConcave.Length);
            }
            _previous = ToggleToGenerate;
        }