refactor(Hi.Sample)!: Box3d, Tri3d, DVec3d and Box2d are named box3d_t, tri3d_t, dvec3d_t and box2d_t -- the C++ typedef names, following HiGeom; the Hi.Native vec3d/tri3d/box3d mirrors are the Hi.Geom values now and vec3f is Hi.Geom.vec3f_t (a word-boundary identifier rename; compound names, string literals and the wire kind names are untouched)
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>
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Sample.Geom;
|
||||
|
||||
/// <summary>
|
||||
/// Demonstrates how to create and calculate bounding boxes for different geometric objects.
|
||||
/// Shows the use of Box3d to encompass multiple geometric elements with a single boundary.
|
||||
/// Shows the use of box3d_t to encompass multiple geometric elements with a single boundary.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// ### Source Code
|
||||
@@ -16,11 +16,11 @@ public static class DemoIExpandToBox3d
|
||||
static void Main()
|
||||
{
|
||||
#region DocSite.CountBoundingBox
|
||||
Box3d objA = new Box3d(0, 0, 0, 1, 1, 1);
|
||||
Box3d objB = new Box3d(-1, -2, -3, 3, 2, 1);
|
||||
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 boundingbox = new Box3d(objA, objB, objC);
|
||||
box3d_t boundingbox = new box3d_t(objA, objB, objC);
|
||||
Console.WriteLine("boundingbox: " + boundingbox);
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user