/// <summary> /// These functions are meant to eliminate blocks that cannot / should not exist /// </summary> /// <param name="block">The block to validate</param> /// <param name="grid">The voxelgrid</param> /// <returns>Can the block be added or not</returns> private bool Validate(Block block, Grid3D grid) { bool valid = true; valid = valid && grid.CanBlockExist(block); valid = valid && CheckMinConnPoints(block, grid); //valid = valid && ConnectedPath(block, grid); //add more rules return(valid); }