Exemple #1
0
        public static Boxi CreateFromPointList(Vec3i[] points)
        {
            Boxi b = MaxMinBox();

            foreach (Vec3i point in points)
            {
                b.AddPointToBoundingBox(point);
            }
            return(b);
        }
Exemple #2
0
        public static Boxi CreateFromPointList(Vec2i[] points, Intervali heightInterval)
        {
            Boxi b = MaxMinBox();

            foreach (Vec2i point in points)
            {
                b.AddPointToBoundingBox(point);
            }
            if (heightInterval.Min < b.min[1])
            {
                b.min[1] = heightInterval.Min;
            }
            if (heightInterval.Max > b.max[1])
            {
                b.max[1] = heightInterval.Max;
            }

            return(b);
        }