BREAKING CHANGE: source that names these types must use the _t names; the Hi.Native mirrors are gone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
28 lines
761 B
C#
28 lines
761 B
C#
using Hi.Geom;
|
|
using System;
|
|
|
|
namespace Sample.Geom;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// ### Source Code
|
|
/// [!code-csharp[SampleCode](~/../Hi.Sample/Geom/DemoIExpandToBox3d.cs)]
|
|
/// </remarks>
|
|
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
|
|
}
|
|
}
|