using Hi.Geom;
using System;
namespace Sample.Geom;
///
/// Demonstrates how to create and calculate bounding boxes for different geometric objects.
/// Shows the use of box3d_t to encompass multiple geometric elements with a single boundary.
///
///
/// ### Source Code
/// [!code-csharp[SampleCode](~/../Hi.Sample/Geom/DemoIExpandToBox3d.cs)]
///
public static class DemoIExpandToBox3d
{
static void Main()
{
#region DocSite.CountBoundingBox
box3d_t objA = new box3d_t(0, 0, 0, 1, 1, 1);
box3d_t objB = new box3d_t(-1, -2, -3, 3, 2, 1);
vec3d_t objC = new vec3d_t(-2, 3, -5);
box3d_t boundingbox = new box3d_t(objA, objB, objC);
Console.WriteLine("boundingbox: " + boundingbox);
#endregion
}
}