Esempio n. 1
0
            static int CountActiveNeighbours(Point3d point, ImmutableHashSet <Point3d> active)
            {
                var count = 0;

                foreach (var neighbour in point.GetNeighboursInDistance(1))
                {
                    if (active.Contains(neighbour))
                    {
                        count++;
                    }
                }

                return(count);
            }