private void Update() { if (ToggleToGenerate != _previous) { _points = GenerateMemoryRandomSet3D(GenerateRadius, GenerateCountMin, GenerateCountMax, CoeffX, CoeffY, CoeffZ); bool created = ConvexHull.Create3D(_points, out _indices, out _dim); Logger.LogInfo("Created: " + created + " Dimension: " + _dim); if (CreateMeshObject) { CreateMesh(); } } _previous = ToggleToGenerate; }