502 lines
20 KiB
HTML
502 lines
20 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Class Tri3dUtil | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Class Tri3dUtil | HiAPI-C# 2025 ">
|
|
|
|
<meta name="description" content="Utility of . Include generator of triangles from points.">
|
|
<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.Tri3dUtil">
|
|
|
|
|
|
|
|
<h1 id="Hi_Geom_Tri3dUtil" data-uid="Hi.Geom.Tri3dUtil" class="text-break">
|
|
Class Tri3dUtil
|
|
</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>Utility of <a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>.
|
|
Include generator of triangles from points.</p>
|
|
</div>
|
|
<div class="markdown conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static class Tri3dUtil</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">Tri3dUtil</span></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)">object.Equals(object)</a>
|
|
</div>
|
|
<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.gethashcode">object.GetHashCode()</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>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="methods">Methods
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByAlignedLists_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByAlignedLists*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByAlignedLists_System_Collections_Generic_IList_Hi_Geom_Vec3d__System_Collections_Generic_IList_Hi_Geom_Vec3d__System_Collections_Generic_IList_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Tri3dUtil.GenTrisByAlignedLists(System.Collections.Generic.IList{Hi.Geom.Vec3d},System.Collections.Generic.IList{Hi.Geom.Vec3d},System.Collections.Generic.IList{Hi.Geom.Tri3d})">
|
|
GenTrisByAlignedLists(IList<Vec3d>, IList<Vec3d>, IList<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void GenTrisByAlignedLists(IList<Vec3d> ps, IList<Vec3d> rrps, IList<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>ps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd></dd>
|
|
<dt><code>rrps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd></dd>
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByAlignedLoops_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByAlignedLoops*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByAlignedLoops_System_Collections_Generic_IList_Hi_Geom_Vec3d__System_Collections_Generic_IList_Hi_Geom_Vec3d__System_Collections_Generic_IList_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Tri3dUtil.GenTrisByAlignedLoops(System.Collections.Generic.IList{Hi.Geom.Vec3d},System.Collections.Generic.IList{Hi.Geom.Vec3d},System.Collections.Generic.IList{Hi.Geom.Tri3d})">
|
|
GenTrisByAlignedLoops(IList<Vec3d>, IList<Vec3d>, IList<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates triangles between two aligned loops of points.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void GenTrisByAlignedLoops(IList<Vec3d> ps, IList<Vec3d> rrps, IList<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>ps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>First loop of points</p>
|
|
</dd>
|
|
<dt><code>rrps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>Second loop of points</p>
|
|
</dd>
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection to add the generated triangles to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByFan_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByFan*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByFan_System_Collections_Generic_IEnumerable_Hi_Geom_Vec3d__Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByFan(System.Collections.Generic.IEnumerable{Hi.Geom.Vec3d},Hi.Geom.Vec3d)">
|
|
GenTrisByFan(IEnumerable<Vec3d>, Vec3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates triangles in a fan pattern from a sequence of points.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static IEnumerable<Tri3d> GenTrisByFan(this IEnumerable<Vec3d> ps, Vec3d faceNormal = null)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>ps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>The sequence of points</p>
|
|
</dd>
|
|
<dt><code>faceNormal</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>Optional face normal for the triangles</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>An enumerable of triangles forming a fan</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByNumAlignment_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByNumAlignment*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByNumAlignment_System_Collections_Generic_List_Hi_Geom_Vec3d__System_Collections_Generic_List_Hi_Geom_Vec3d__System_Collections_Generic_IList_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Tri3dUtil.GenTrisByNumAlignment(System.Collections.Generic.List{Hi.Geom.Vec3d},System.Collections.Generic.List{Hi.Geom.Vec3d},System.Collections.Generic.IList{Hi.Geom.Tri3d})">
|
|
GenTrisByNumAlignment(List<Vec3d>, List<Vec3d>, IList<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates triangles between two lists of points with different numbers of points.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void GenTrisByNumAlignment(List<Vec3d> psA, List<Vec3d> psB, IList<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>psA</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>First list of points</p>
|
|
</dd>
|
|
<dt><code>psB</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>Second list of points</p>
|
|
</dd>
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection to add the generated triangles to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByQuad_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByQuad*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByQuad_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_System_Collections_Generic_IList_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Tri3dUtil.GenTrisByQuad(Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d,System.Collections.Generic.IList{Hi.Geom.Tri3d})">
|
|
GenTrisByQuad(Vec3d, Vec3d, Vec3d, Vec3d, IList<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates two triangles from a quadrilateral defined by four points.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void GenTrisByQuad(Vec3d p0, Vec3d p1, Vec3d p2, Vec3d p3, IList<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>p0</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>First point of the quadrilateral</p>
|
|
</dd>
|
|
<dt><code>p1</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>Second point of the quadrilateral</p>
|
|
</dd>
|
|
<dt><code>p2</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>Third point of the quadrilateral</p>
|
|
</dd>
|
|
<dt><code>p3</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>Fourth point of the quadrilateral</p>
|
|
</dd>
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection to add the generated triangles to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByStar_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByStar*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByStar_Hi_Geom_Vec3d_System_Collections_Generic_IList_Hi_Geom_Vec3d__System_Collections_Generic_IList_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Tri3dUtil.GenTrisByStar(Hi.Geom.Vec3d,System.Collections.Generic.IList{Hi.Geom.Vec3d},System.Collections.Generic.IList{Hi.Geom.Tri3d})">
|
|
GenTrisByStar(Vec3d, IList<Vec3d>, IList<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates triangles in a star pattern from a center point to a list of points.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void GenTrisByStar(Vec3d starP, IList<Vec3d> ps, IList<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>starP</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>The center point of the star</p>
|
|
</dd>
|
|
<dt><code>ps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>The list of points forming the perimeter</p>
|
|
</dd>
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection to add the generated triangles to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GenTrisByStar_" data-uid="Hi.Geom.Tri3dUtil.GenTrisByStar*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GenTrisByStar_System_Collections_Generic_IList_Hi_Geom_Vec3d__Hi_Geom_Vec3d_System_Collections_Generic_IList_Hi_Geom_Tri3d__" data-uid="Hi.Geom.Tri3dUtil.GenTrisByStar(System.Collections.Generic.IList{Hi.Geom.Vec3d},Hi.Geom.Vec3d,System.Collections.Generic.IList{Hi.Geom.Tri3d})">
|
|
GenTrisByStar(IList<Vec3d>, Vec3d, IList<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generates triangles in a star pattern from a list of points to a center point.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void GenTrisByStar(IList<Vec3d> ps, Vec3d starP, IList<Tri3d> dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>ps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>></dt>
|
|
<dd><p>The list of points forming the perimeter</p>
|
|
</dd>
|
|
<dt><code>starP</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>The center point of the star</p>
|
|
</dd>
|
|
<dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection to add the generated triangles to</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Tri3dUtil_GetSegmentsFromPlaneClip_" data-uid="Hi.Geom.Tri3dUtil.GetSegmentsFromPlaneClip*"></a>
|
|
|
|
<h3 id="Hi_Geom_Tri3dUtil_GetSegmentsFromPlaneClip_System_Collections_Generic_IEnumerable_Hi_Geom_Tri3d__Hi_Geom_IFlat3d_" data-uid="Hi.Geom.Tri3dUtil.GetSegmentsFromPlaneClip(System.Collections.Generic.IEnumerable{Hi.Geom.Tri3d},Hi.Geom.IFlat3d)">
|
|
GetSegmentsFromPlaneClip(IEnumerable<Tri3d>, IFlat3d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets line segments resulting from intersecting triangles with a clipping plane.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static List<Segment3d> GetSegmentsFromPlaneClip(this IEnumerable<Tri3d> tris, IFlat3d clipPlane)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>tris</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection of triangles to clip</p>
|
|
</dd>
|
|
<dt><code>clipPlane</code> <a class="xref" href="Hi.Geom.IFlat3d.html">IFlat3d</a></dt>
|
|
<dd><p>The clipping plane</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.Segment3d.html">Segment3d</a>></dt>
|
|
<dd><p>A list of line segments representing the intersection</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>
|