2260 lines
55 KiB
HTML
2260 lines
55 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Class Box3d | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Class Box3d | HiAPI-C# 2025 ">
|
|
|
|
<meta name="description" content="Lightweight 3d box. An orthogonal box which the edges are all parallel with Cartesian Coordinate. The data contains in a is and .">
|
|
<link rel="icon" href="../img/HiAPI.favicon.ico">
|
|
<link rel="stylesheet" href="../public/docfx.min.css">
|
|
<link rel="stylesheet" href="../public/main.css">
|
|
<meta name="docfx:navrel" content="../toc.html">
|
|
<meta name="docfx:tocrel" content="toc.html">
|
|
|
|
<meta name="docfx:rel" content="../">
|
|
|
|
|
|
|
|
<meta name="loc:inThisArticle" content="In this article">
|
|
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
|
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
|
<meta name="loc:tocFilter" content="Filter by title">
|
|
<meta name="loc:nextArticle" content="Next">
|
|
<meta name="loc:prevArticle" content="Previous">
|
|
<meta name="loc:themeLight" content="Light">
|
|
<meta name="loc:themeDark" content="Dark">
|
|
<meta name="loc:themeAuto" content="Auto">
|
|
<meta name="loc:changeTheme" content="Change theme">
|
|
<meta name="loc:copy" content="Copy">
|
|
<meta name="loc:downloadPdf" content="Download PDF">
|
|
|
|
<script type="module" src="./../public/docfx.min.js"></script>
|
|
|
|
<script>
|
|
const theme = localStorage.getItem('theme') || 'auto'
|
|
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
|
|
<header class="bg-body border-bottom">
|
|
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
|
<div class="container-xxl flex-nowrap">
|
|
<a class="navbar-brand" href="../index.html">
|
|
<img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
|
|
|
|
</a>
|
|
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
|
<i class="bi bi-three-dots"></i>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navpanel">
|
|
<div id="navbar">
|
|
<form class="search" role="search" id="search">
|
|
<i class="bi bi-search"></i>
|
|
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container-xxl">
|
|
<div class="toc-offcanvas">
|
|
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
|
<div class="offcanvas-header">
|
|
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
|
</div>
|
|
<div class="offcanvas-body">
|
|
<nav class="toc" id="toc"></nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="actionbar">
|
|
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
|
|
<nav id="breadcrumb"></nav>
|
|
</div>
|
|
|
|
<article data-uid="Hi.Geom.Box3d">
|
|
|
|
|
|
|
|
<h1 id="Hi_Geom_Box3d" data-uid="Hi.Geom.Box3d" class="text-break">
|
|
Class Box3d
|
|
</h1>
|
|
|
|
<div class="facts text-secondary">
|
|
<dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.Geom.html">Geom</a></dd></dl>
|
|
<dl><dt>Assembly</dt><dd>HiGeom.dll</dd></dl>
|
|
</div>
|
|
|
|
<div class="markdown summary"><p>Lightweight 3d box.
|
|
An orthogonal box which the edges are all parallel with Cartesian Coordinate.
|
|
The data contains in a <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a> is <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Min">Min</a> and <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Max">Max</a>.</p>
|
|
</div>
|
|
<div class="markdown conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public class Box3d : IExpandToBox3d, IEquatable<Box3d>, IStlSource, IGetStl, IMakeXmlSource, IBinaryIo, IWriteBin, IDuplicate</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<dl class="typelist inheritance">
|
|
<dt>Inheritance</dt>
|
|
<dd>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
|
|
<div><span class="xref">Box3d</span></div>
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl class="typelist implements">
|
|
<dt>Implements</dt>
|
|
<dd>
|
|
<div><a class="xref" href="Hi.Geom.IExpandToBox3d.html">IExpandToBox3d</a></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a><<a class="xref" href="Hi.Geom.Box3d.html">Box3d</a>></div>
|
|
<div><a class="xref" href="Hi.Geom.IStlSource.html">IStlSource</a></div>
|
|
<div><a class="xref" href="Hi.Geom.IGetStl.html">IGetStl</a></div>
|
|
<div><a class="xref" href="Hi.Common.XmlUtils.IMakeXmlSource.html">IMakeXmlSource</a></div>
|
|
<div><a class="xref" href="Hi.Common.IBinaryIo.html">IBinaryIo</a></div>
|
|
<div><a class="xref" href="Hi.Common.IWriteBin.html">IWriteBin</a></div>
|
|
<div><a class="xref" href="Hi.Common.IDuplicate.html">IDuplicate</a></div>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
<dl class="typelist inheritedMembers">
|
|
<dt>Inherited Members</dt>
|
|
<dd>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
<dl class="typelist extensionMethods">
|
|
<dt>Extension Methods</dt>
|
|
<dd>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.BinIoUtil.html#Hi_Common_BinIoUtil_ToBytes_Hi_Common_IWriteBin_">BinIoUtil.ToBytes(IWriteBin)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.XmlUtils.XmlUtil.html#Hi_Common_XmlUtils_XmlUtil_MakeXmlSourceFile_Hi_Common_XmlUtils_IMakeXmlSource_System_String_">XmlUtil.MakeXmlSourceFile(IMakeXmlSource, string)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.XmlUtils.XmlUtil.html#Hi_Common_XmlUtils_XmlUtil_MakeXmlSourceWithRebaseFile_Hi_Common_XmlUtils_IMakeXmlSource_System_String_System_String_">XmlUtil.MakeXmlSourceWithRebaseFile(IMakeXmlSource, string, string)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.XmlUtils.XmlUtil.html#Hi_Common_XmlUtils_XmlUtil_SaveToByteArrayAsync_Hi_Common_XmlUtils_IMakeXmlSource_System_String_">XmlUtil.SaveToByteArrayAsync(IMakeXmlSource, string)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.DuplicateUtil.html#Hi_Common_DuplicateUtil_TryDuplicate__1___0_System_Object___">DuplicateUtil.TryDuplicate<TSelf>(TSelf, params object[])</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__1___0_System_Action___0__">InvokeUtil.SelfInvoke<TSrc>(TSrc, Action<TSrc>)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke<TSrc, TDst>(TSrc, Func<TSrc, TDst>)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Geom.GeomUtil.html#Hi_Geom_GeomUtil_GetBox3d_Hi_Geom_IExpandToBox3d_">GeomUtil.GetBox3d(IExpandToBox3d)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Geom.PairZrUtil.html#Hi_Geom_PairZrUtil_GetZrList_Hi_Geom_IGetStl_">PairZrUtil.GetZrList(IGetStl)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Coloring.ColorUtil.html#Hi_Coloring_ColorUtil_GetGloomyColor_System_Object_System_Double_System_Double_">ColorUtil.GetGloomyColor(object, double, double)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.NameUtil.html#Hi_Common_NameUtil_GetSelectionName_System_Object_">NameUtil.GetSelectionName(object)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.StringUtil.html#Hi_Common_StringUtil_GetPropertyStringIfToStringNotOverloaded_System_Object_System_Boolean_System_Boolean_">StringUtil.GetPropertyStringIfToStringNotOverloaded(object, bool, bool)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Parallels.LockUtil.html#Hi_Parallels_LockUtil_Lock_System_Object_">LockUtil.Lock(object)</a>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="constructors">Constructors
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor" data-uid="Hi.Geom.Box3d.#ctor">
|
|
Box3d()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d()</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_Hi_Geom_Box3d_NoInit_" data-uid="Hi.Geom.Box3d.#ctor(Hi.Geom.Box3d.NoInit)">
|
|
Box3d(NoInit)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor.
|
|
The Ctor keeps <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Min">Min</a> and <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Max">Max</a> to null.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(Box3d.NoInit noInit)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>noInit</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a>.<a class="xref" href="Hi.Geom.Box3d.NoInit.html">NoInit</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_Hi_Geom_IExpandToBox3d___" data-uid="Hi.Geom.Box3d.#ctor(Hi.Geom.IExpandToBox3d[])">
|
|
Box3d(params IExpandToBox3d[])
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates a box that encompasses all the provided expandable objects.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(params IExpandToBox3d[] src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.IExpandToBox3d.html">IExpandToBox3d</a>[]</dt>
|
|
<dd><p>Array of objects that can expand to a box</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Box3d.#ctor(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
|
|
Box3d(Vec3d, Vec3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(Vec3d min, Vec3d max)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>min</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p><a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Min">Min</a></p>
|
|
</dd>
|
|
<dt><code>max</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p><a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Max">Max</a></p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_Hi_Native_box3d_" data-uid="Hi.Geom.Box3d.#ctor(Hi.Native.box3d)">
|
|
Box3d(box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(box3d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Native.box3d.html">box3d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_System_Collections_Generic_IEnumerable_Hi_Geom_IExpandToBox3d__" data-uid="Hi.Geom.Box3d.#ctor(System.Collections.Generic.IEnumerable{Hi.Geom.IExpandToBox3d})">
|
|
Box3d(IEnumerable<IExpandToBox3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates a box that encompasses all the provided expandable objects.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(IEnumerable<IExpandToBox3d> src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.IExpandToBox3d.html">IExpandToBox3d</a>></dt>
|
|
<dd><p>Collection of objects that can expand to a box</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_System_Double_System_Double_System_Double_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Box3d.#ctor(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)">
|
|
Box3d(double, double, double, double, double, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates a box with the specified minimum and maximum coordinates.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(double minx, double miny, double minz, double maxx, double maxy, double maxz)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>minx</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Minimum X coordinate</p>
|
|
</dd>
|
|
<dt><code>miny</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Minimum Y coordinate</p>
|
|
</dd>
|
|
<dt><code>minz</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Minimum Z coordinate</p>
|
|
</dd>
|
|
<dt><code>maxx</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Maximum X coordinate</p>
|
|
</dd>
|
|
<dt><code>maxy</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Maximum Y coordinate</p>
|
|
</dd>
|
|
<dt><code>maxz</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Maximum Z coordinate</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_System_IO_BinaryReader_" data-uid="Hi.Geom.Box3d.#ctor(System.IO.BinaryReader)">
|
|
Box3d(BinaryReader)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates a box from binary data.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(BinaryReader reader)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>reader</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a></dt>
|
|
<dd><p>Binary reader to read the box data from</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d__ctor_" data-uid="Hi.Geom.Box3d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d__ctor_System_Xml_Linq_XElement_" data-uid="Hi.Geom.Box3d.#ctor(System.Xml.Linq.XElement)">
|
|
Box3d(XElement)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d(XElement src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
|
|
<dd><p>XML</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="properties">Properties
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_BottomCenter_" data-uid="Hi.Geom.Box3d.BottomCenter*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_BottomCenter" data-uid="Hi.Geom.Box3d.BottomCenter">
|
|
BottomCenter
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Center of the bottom surface.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d BottomCenter { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_BottomView_" data-uid="Hi.Geom.Box3d.BottomView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_BottomView" data-uid="Hi.Geom.Box3d.BottomView">
|
|
BottomView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from the bottom.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d BottomView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Center_" data-uid="Hi.Geom.Box3d.Center*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Center" data-uid="Hi.Geom.Box3d.Center">
|
|
Center
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Center</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d Center { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_CenterUnitBox_" data-uid="Hi.Geom.Box3d.CenterUnitBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_CenterUnitBox" data-uid="Hi.Geom.Box3d.CenterUnitBox">
|
|
CenterUnitBox
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate a center unit box which min~max is (-0.5,-0.5,-0.5)~(0.5,0.5,0.5).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Box3d CenterUnitBox { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_DiagonalLength_" data-uid="Hi.Geom.Box3d.DiagonalLength*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_DiagonalLength" data-uid="Hi.Geom.Box3d.DiagonalLength">
|
|
DiagonalLength
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Diagonal length.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double DiagonalLength { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Dim_" data-uid="Hi.Geom.Box3d.Dim*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Dim" data-uid="Hi.Geom.Box3d.Dim">
|
|
Dim
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Dimension.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d Dim { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_FrontView_" data-uid="Hi.Geom.Box3d.FrontView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_FrontView" data-uid="Hi.Geom.Box3d.FrontView">
|
|
FrontView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from the front.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d FrontView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_HasVolume_" data-uid="Hi.Geom.Box3d.HasVolume*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_HasVolume" data-uid="Hi.Geom.Box3d.HasVolume">
|
|
HasVolume
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Checks if the box has a positive volume (all dimensions are greater than zero).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool HasVolume { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_IsAllNaN_" data-uid="Hi.Geom.Box3d.IsAllNaN*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_IsAllNaN" data-uid="Hi.Geom.Box3d.IsAllNaN">
|
|
IsAllNaN
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>True if all components of Min and Max are NaN.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAllNaN { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_IsFinite_" data-uid="Hi.Geom.Box3d.IsFinite*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_IsFinite" data-uid="Hi.Geom.Box3d.IsFinite">
|
|
IsFinite
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>True if the box is finite.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsFinite { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_IsReversedPoleBox_" data-uid="Hi.Geom.Box3d.IsReversedPoleBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_IsReversedPoleBox" data-uid="Hi.Geom.Box3d.IsReversedPoleBox">
|
|
IsReversedPoleBox
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>True if the box is <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_ReversedPoleBox">ReversedPoleBox</a></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsReversedPoleBox { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_IsometricView_" data-uid="Hi.Geom.Box3d.IsometricView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_IsometricView" data-uid="Hi.Geom.Box3d.IsometricView">
|
|
IsometricView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from an isometric perspective.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d IsometricView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_LeftSideView_" data-uid="Hi.Geom.Box3d.LeftSideView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_LeftSideView" data-uid="Hi.Geom.Box3d.LeftSideView">
|
|
LeftSideView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from the left side.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d LeftSideView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Max_" data-uid="Hi.Geom.Box3d.Max*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Max" data-uid="Hi.Geom.Box3d.Max">
|
|
Max
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Maximum point of the box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d Max { get; set; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Min_" data-uid="Hi.Geom.Box3d.Min*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Min" data-uid="Hi.Geom.Box3d.Min">
|
|
Min
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Minimum point of the box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d Min { get; set; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_NaN_" data-uid="Hi.Geom.Box3d.NaN*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_NaN" data-uid="Hi.Geom.Box3d.NaN">
|
|
NaN
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate a nan box which min~max is (nan,nan,nan)~(nan,nan,nan).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Box3d NaN { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_NativeByteSize_" data-uid="Hi.Geom.Box3d.NativeByteSize*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_NativeByteSize" data-uid="Hi.Geom.Box3d.NativeByteSize">
|
|
NativeByteSize
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets the native byte size of a Box3d (2 Vec3d objects).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int NativeByteSize { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_RearView_" data-uid="Hi.Geom.Box3d.RearView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_RearView" data-uid="Hi.Geom.Box3d.RearView">
|
|
RearView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from the rear.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d RearView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ReversedPoleBox_" data-uid="Hi.Geom.Box3d.ReversedPoleBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ReversedPoleBox" data-uid="Hi.Geom.Box3d.ReversedPoleBox">
|
|
ReversedPoleBox
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate a reversed pole box which min~max is (∞,∞,∞)~(-∞,-∞,-∞).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Box3d ReversedPoleBox { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_RightSideView_" data-uid="Hi.Geom.Box3d.RightSideView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_RightSideView" data-uid="Hi.Geom.Box3d.RightSideView">
|
|
RightSideView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from the right side.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d RightSideView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_TopCenter_" data-uid="Hi.Geom.Box3d.TopCenter*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_TopCenter" data-uid="Hi.Geom.Box3d.TopCenter">
|
|
TopCenter
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Center of the top surface.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d TopCenter { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_TopView_" data-uid="Hi.Geom.Box3d.TopView*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_TopView" data-uid="Hi.Geom.Box3d.TopView">
|
|
TopView
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a transformation matrix for viewing the box from the top.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Mat4d TopView { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_UnitBox_" data-uid="Hi.Geom.Box3d.UnitBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_UnitBox" data-uid="Hi.Geom.Box3d.UnitBox">
|
|
UnitBox
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate a unit box which min~max is (0,0,0)~(1,1,1).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Box3d UnitBox { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Volume_" data-uid="Hi.Geom.Box3d.Volume*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Volume" data-uid="Hi.Geom.Box3d.Volume">
|
|
Volume
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets the volume of the box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Volume { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_XName_" data-uid="Hi.Geom.Box3d.XName*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_XName" data-uid="Hi.Geom.Box3d.XName">
|
|
XName
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Name for XML IO.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string XName { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ZeroBox_" data-uid="Hi.Geom.Box3d.ZeroBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ZeroBox" data-uid="Hi.Geom.Box3d.ZeroBox">
|
|
ZeroBox
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate a zero box which min~max is (0,0,0)~(0,0,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Box3d ZeroBox { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="methods">Methods
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ApexAt_" data-uid="Hi.Geom.Box3d.ApexAt*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ApexAt_System_Int32_" data-uid="Hi.Geom.Box3d.ApexAt(System.Int32)">
|
|
ApexAt(int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get Apex at the box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d ApexAt(int index)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>index</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>index 0~7. all of 8 apex.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Duplicate_" data-uid="Hi.Geom.Box3d.Duplicate*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Duplicate_System_Object___" data-uid="Hi.Geom.Box3d.Duplicate(System.Object[])">
|
|
Duplicate(params object[])
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates a deep copy of the object, excluding any source file references.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public object Duplicate(params object[] res)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
|
<dd><p>Optional parameters that may be needed during the duplication process</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
|
|
<dd><p>A new instance that is a deep copy of the original object</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Equals_" data-uid="Hi.Geom.Box3d.Equals*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Equals_Hi_Geom_Box3d_" data-uid="Hi.Geom.Box3d.Equals(Hi.Geom.Box3d)">
|
|
Equals(Box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool Equals(Box3d other)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>other</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>An object to compare with this object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Equals_" data-uid="Hi.Geom.Box3d.Equals*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Equals_System_Object_" data-uid="Hi.Geom.Box3d.Equals(System.Object)">
|
|
Equals(object)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>obj</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
|
|
<dd><p>The object to compare with the current object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the specified object is equal to the current object; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Expand_" data-uid="Hi.Geom.Box3d.Expand*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Expand_Hi_Geom_Box3d_" data-uid="Hi.Geom.Box3d.Expand(Hi.Geom.Box3d)">
|
|
Expand(Box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Expands this box to include another box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d Expand(Box3d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>The box to include</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>This box after expansion</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Expand_" data-uid="Hi.Geom.Box3d.Expand*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Expand_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Box3d.Expand(Hi.Geom.Vec3d)">
|
|
Expand(Vec3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Expands the box to include the specified point.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d Expand(Vec3d p)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>p</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>Point to include in the box</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>This box after expansion</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ExpandToBox3d_" data-uid="Hi.Geom.Box3d.ExpandToBox3d*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ExpandToBox3d_Hi_Geom_Box3d_" data-uid="Hi.Geom.Box3d.ExpandToBox3d(Hi.Geom.Box3d)">
|
|
ExpandToBox3d(Box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Expands the destination box.
|
|
This function is usually used to compute the bounding box of elements.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void ExpandToBox3d(Box3d dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dst</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>Destination box</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_GetHashCode_" data-uid="Hi.Geom.Box3d.GetHashCode*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_GetHashCode" data-uid="Hi.Geom.Box3d.GetHashCode">
|
|
GetHashCode()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Serves as the default hash function.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>A hash code for the current object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_GetStl_" data-uid="Hi.Geom.Box3d.GetStl*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_GetStl" data-uid="Hi.Geom.Box3d.GetStl">
|
|
GetStl()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate Stl.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Stl GetStl()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Stl.html">Stl</a></dt>
|
|
<dd><p>stl</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_GetTransformedBoundingBox_" data-uid="Hi.Geom.Box3d.GetTransformedBoundingBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_GetTransformedBoundingBox_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Box3d.GetTransformedBoundingBox(Hi.Geom.Mat4d)">
|
|
GetTransformedBoundingBox(Mat4d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get the bounding box of the transformed box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d GetTransformedBoundingBox(Mat4d mat)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd><p>matrix</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_GetTris_" data-uid="Hi.Geom.Box3d.GetTris*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_GetTris_System_Collections_Generic_ICollection_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Box3d.GetTris(System.Collections.Generic.ICollection{Hi.Geom.Tri3d})">
|
|
GetTris(ICollection<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates triangles representing the box's surfaces.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public int GetTris(ICollection<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>Collection to add the triangles to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>The number of triangles added (12)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_IsOverlapped_" data-uid="Hi.Geom.Box3d.IsOverlapped*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_IsOverlapped_Hi_Geom_Box3d_" data-uid="Hi.Geom.Box3d.IsOverlapped(Hi.Geom.Box3d)">
|
|
IsOverlapped(Box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Is the box overlapped to <code class="paramref">otherBox</code>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsOverlapped(Box3d otherBox)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>otherBox</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>other box</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>is overlapped</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_MakeXmlSource_" data-uid="Hi.Geom.Box3d.MakeXmlSource*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_MakeXmlSource_System_String_System_String_" data-uid="Hi.Geom.Box3d.MakeXmlSource(System.String,System.String)">
|
|
MakeXmlSource(string, string)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates an XML representation of the object.
|
|
This method may also generate additional resources such as related files.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public XElement MakeXmlSource(string baseDirectory, string relFile)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>The base directory for resolving relative paths</p>
|
|
</dd>
|
|
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>The relative file path for the XML source</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
|
|
<dd><p>An XML element representing the object's state</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_MemberAt_" data-uid="Hi.Geom.Box3d.MemberAt*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_MemberAt_System_Int32_" data-uid="Hi.Geom.Box3d.MemberAt(System.Int32)">
|
|
MemberAt(int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get member at the location.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec3d MemberAt(int iter)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>iter</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>iterator</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p><a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Min">Min</a>if <code class="paramref">iter</code> is 0; otherwise, return <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Max">Max</a></p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ReadBin_" data-uid="Hi.Geom.Box3d.ReadBin*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ReadBin_System_IO_BinaryReader_" data-uid="Hi.Geom.Box3d.ReadBin(System.IO.BinaryReader)">
|
|
ReadBin(BinaryReader)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Reads box data from a binary reader.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void ReadBin(BinaryReader reader)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>reader</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a></dt>
|
|
<dd><p>Binary reader to read the box data from</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ScaleFromCenter_" data-uid="Hi.Geom.Box3d.ScaleFromCenter*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ScaleFromCenter_System_Double_" data-uid="Hi.Geom.Box3d.ScaleFromCenter(System.Double)">
|
|
ScaleFromCenter(double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Scales the box from its center point.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d ScaleFromCenter(double s)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>s</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Scale factor</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>This box after scaling</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Set_" data-uid="Hi.Geom.Box3d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Set_Hi_Geom_Box3d_" data-uid="Hi.Geom.Box3d.Set(Hi.Geom.Box3d)">
|
|
Set(Box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Copy the <code class="paramref">src</code>.
|
|
The <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Min">Min</a> and <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Max">Max</a> are kept the same object. Only the double values changed.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d Set(Box3d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Set_" data-uid="Hi.Geom.Box3d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Set_Hi_Native_box3d_" data-uid="Hi.Geom.Box3d.Set(Hi.Native.box3d)">
|
|
Set(box3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Copy the <code class="paramref">src</code>.
|
|
The <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Min">Min</a> and <a class="xref" href="Hi.Geom.Box3d.html#Hi_Geom_Box3d_Max">Max</a> are kept the same object. Only the double values changed.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d Set(box3d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Native.box3d.html">box3d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Set_" data-uid="Hi.Geom.Box3d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Set_System_Double_System_Double_System_Double_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Box3d.Set(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)">
|
|
Set(double, double, double, double, double, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Sets the box coordinates to the specified values.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d Set(double minx, double miny, double minz, double maxx, double maxy, double maxz)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>minx</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Minimum X coordinate</p>
|
|
</dd>
|
|
<dt><code>miny</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Minimum Y coordinate</p>
|
|
</dd>
|
|
<dt><code>minz</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Minimum Z coordinate</p>
|
|
</dd>
|
|
<dt><code>maxx</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Maximum X coordinate</p>
|
|
</dd>
|
|
<dt><code>maxy</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Maximum Y coordinate</p>
|
|
</dd>
|
|
<dt><code>maxz</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Maximum Z coordinate</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>This box after modification</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_SetToTransformedBoundingBox_" data-uid="Hi.Geom.Box3d.SetToTransformedBoundingBox*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_SetToTransformedBoundingBox_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Box3d.SetToTransformedBoundingBox(Hi.Geom.Mat4d)">
|
|
SetToTransformedBoundingBox(Mat4d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set the box to the bounding box of the matrix-transformed box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d SetToTransformedBoundingBox(Mat4d mat)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
|
|
<dd><p>matrix</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_ToString_" data-uid="Hi.Geom.Box3d.ToString*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_ToString" data-uid="Hi.Geom.Box3d.ToString">
|
|
ToString()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Returns a string that represents the current object.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>A string that represents the current object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_Translate_" data-uid="Hi.Geom.Box3d.Translate*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_Translate_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Box3d.Translate(Hi.Geom.Vec3d)">
|
|
Translate(Vec3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Translate the box.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Box3d Translate(Vec3d vec)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>vec</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>translation vector</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Box3d_WriteBin_" data-uid="Hi.Geom.Box3d.WriteBin*"></a>
|
|
|
|
<h3 id="Hi_Geom_Box3d_WriteBin_System_IO_BinaryWriter_" data-uid="Hi.Geom.Box3d.WriteBin(System.IO.BinaryWriter)">
|
|
WriteBin(BinaryWriter)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Writes box data to a binary writer.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void WriteBin(BinaryWriter writer)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>writer</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binarywriter">BinaryWriter</a></dt>
|
|
<dd><p>Binary writer to write the box data to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
<div class="contribution d-print-none">
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="affix">
|
|
<nav id="affix"></nav>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="container-xxl search-results" id="search-results"></div>
|
|
|
|
<footer class="border-top text-secondary">
|
|
<div class="container-xxl">
|
|
<div class="flex-fill">
|
|
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|