Class IndexUtil
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Methods
Apply(List<Int32>, IIndexMap)
Declaration
public static void Apply(List<int> indices, IIndexMap map)
Parameters
Apply(Int32[], IIndexMap)
Declaration
public static void Apply(int[] indices, IIndexMap map)
Parameters
Apply(Int32[], IList<Int32>)
Declaration
public static void Apply(int[] indices, IList<int> map)
Parameters
cycle_indices_minfirst(ref Index3i)
Declaration
public static void cycle_indices_minfirst(ref Index3i tri)
Parameters
EdgesToVertices(DMesh3, HashSet<Int32>, HashSet<Int32>)
Declaration
public static void EdgesToVertices(DMesh3 mesh, HashSet<int> edges, HashSet<int> vertices)
Parameters
EdgesToVertices(DMesh3, IEnumerable<Int32>, HashSet<Int32>)
Declaration
public static void EdgesToVertices(DMesh3 mesh, IEnumerable<int> edges, HashSet<int> vertices)
Parameters
FilterValid(Int32[], Func<Int32, Boolean>, Boolean)
Filter out invalid entries in indices[] list. Will return indices itself if
none invalid, and bForceCopy == false
Declaration
public static int[] FilterValid(int[] indices, Func<int, bool> FilterF, bool bForceCopy = false)
Parameters
Returns
find_edge_index_in_tri(Int32, Int32, ref Index3i)
Declaration
public static int find_edge_index_in_tri(int a, int b, ref Index3i tri_verts)
Parameters
Returns
find_edge_index_in_tri(Int32, Int32, Int32[])
Declaration
public static int find_edge_index_in_tri(int a, int b, int[] tri_verts)
Parameters
Returns
find_edge_other_v(Index2i, Int32)
Declaration
public static int find_edge_other_v(Index2i ev, int v)
Parameters
Returns
find_edge_other_v(ref Index2i, Int32)
Declaration
public static int find_edge_other_v(ref Index2i ev, int v)
Parameters
Returns
find_shared_edge_v(ref Index2i, ref Index2i)
Declaration
public static int find_shared_edge_v(ref Index2i ev0, ref Index2i ev1)
Parameters
Returns
find_tri_index(Int32, Index3i)
Declaration
public static int find_tri_index(int a, Index3i tri_verts)
Parameters
Returns
find_tri_index(Int32, ref Index3i)
Declaration
public static int find_tri_index(int a, ref Index3i tri_verts)
Parameters
Returns
find_tri_index(Int32, Int32[])
Declaration
public static int find_tri_index(int a, int[] tri_verts)
Parameters
Returns
find_tri_ordered_edge(Int32, Int32, Index3i)
Declaration
public static int find_tri_ordered_edge(int a, int b, Index3i tri_verts)
Parameters
Returns
find_tri_ordered_edge(Int32, Int32, ref Index3i)
find sequence [a,b] in tri_verts (mod3) and return index of a, or InvalidID if not found
Declaration
public static int find_tri_ordered_edge(int a, int b, ref Index3i tri_verts)
Parameters
Returns
find_tri_ordered_edge(Int32, Int32, Int32[])
Declaration
public static int find_tri_ordered_edge(int a, int b, int[] tri_verts)
Parameters
Returns
find_tri_other_index(Int32, Int32, Int32[])
Declaration
public static int find_tri_other_index(int a, int b, int[] tri_verts)
Parameters
Returns
find_tri_other_verts(Int32, ref Index3i)
assuming a is in tri-verts, returns other two vertices, in correct order (or Index2i.Max if not found)
Declaration
public static Index2i find_tri_other_verts(int a, ref Index3i tri_verts)
Parameters
Returns
find_tri_other_vtx(Int32, Int32, DVector<Int32>, Int32)
Declaration
public static int find_tri_other_vtx(int a, int b, DVector<int> tri_array, int ti)
Parameters
Returns
find_tri_other_vtx(Int32, Int32, Index3i)
Declaration
public static int find_tri_other_vtx(int a, int b, Index3i tri_verts)
Parameters
Returns
find_tri_other_vtx(Int32, Int32, Int32[])
Declaration
public static int find_tri_other_vtx(int a, int b, int[] tri_verts)
Parameters
Returns
IndicesCheck(Int32[], Func<Int32, Boolean>)
return trune if CheckF returns true for all members of indices list
Declaration
public static bool IndicesCheck(int[] indices, Func<int, bool> CheckF)
Parameters
Returns
is_ordered(Int32, Int32, ref Index3i)
Declaration
public static bool is_ordered(int a, int b, ref Index3i tri_verts)
Parameters
Returns
is_same_triangle(Int32, Int32, Int32, ref Index3i)
Declaration
public static bool is_same_triangle(int a, int b, int c, ref Index3i tri)
Parameters
Returns
orient_tri_edge(ref Int32, ref Int32, Index3i)
Declaration
public static bool orient_tri_edge(ref int a, ref int b, Index3i tri_verts)
Parameters
Returns
orient_tri_edge(ref Int32, ref Int32, ref Index3i)
Declaration
public static bool orient_tri_edge(ref int a, ref int b, ref Index3i tri_verts)
Parameters
Returns
orient_tri_edge_and_find_other_vtx(ref Int32, ref Int32, Index3i)
Declaration
public static int orient_tri_edge_and_find_other_vtx(ref int a, ref int b, Index3i tri_verts)
Parameters
Returns
orient_tri_edge_and_find_other_vtx(ref Int32, ref Int32, Int32[])
Declaration
public static int orient_tri_edge_and_find_other_vtx(ref int a, ref int b, int[] tri_verts)
Parameters
Returns
same_pair_unordered(Int32, Int32, Int32, Int32)
Declaration
public static bool same_pair_unordered(int a0, int a1, int b0, int b1)
Parameters
Returns
sort_indices(ref Index3i)
Declaration
public static void sort_indices(ref Index3i tri)
Parameters
ToGrid3Index(Int32, Int32, Int32)
Declaration
public static Vector3i ToGrid3Index(int idx, int nx, int ny)
Parameters
Returns
ToGrid3Linear(Vector3i, Int32, Int32)
Declaration
public static int ToGrid3Linear(Vector3i ijk, int nx, int ny)
Parameters
Returns
ToGrid3Linear(ref Vector3i, Int32, Int32)
Declaration
public static int ToGrid3Linear(ref Vector3i ijk, int nx, int ny)
Parameters
Returns
ToGrid3Linear(Int32, Int32, Int32, Int32, Int32)
Declaration
public static int ToGrid3Linear(int i, int j, int k, int nx, int ny)
Parameters
Returns
TrianglesToEdges(DMesh3, HashSet<Int32>, HashSet<Int32>)
Declaration
public static void TrianglesToEdges(DMesh3 mesh, HashSet<int> triangles, HashSet<int> edges)
Parameters
TrianglesToEdges(DMesh3, IEnumerable<Int32>, HashSet<Int32>)
Declaration
public static void TrianglesToEdges(DMesh3 mesh, IEnumerable<int> triangles, HashSet<int> edges)
Parameters
TrianglesToVertices(DMesh3, HashSet<Int32>, HashSet<Int32>)
Declaration
public static void TrianglesToVertices(DMesh3 mesh, HashSet<int> triangles, HashSet<int> vertices)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|
HashSet<Int32> |
triangles |
|
HashSet<Int32> |
vertices |
|
TrianglesToVertices(DMesh3, IEnumerable<Int32>, HashSet<Int32>)
Declaration
public static void TrianglesToVertices(DMesh3 mesh, IEnumerable<int> triangles, HashSet<int> vertices)
Parameters