Search Results for

    Show / Hide Table of Contents

    Class IndexUtil

    Inheritance
    Object
    IndexUtil
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class IndexUtil

    Methods

    Apply(List<Int32>, IIndexMap)

    Apply map to indices

    Declaration
    public static void Apply(List<int> indices, IIndexMap map)
    Parameters
    Type Name Description
    List<Int32> indices
    IIndexMap map

    Apply(Int32[], IIndexMap)

    Declaration
    public static void Apply(int[] indices, IIndexMap map)
    Parameters
    Type Name Description
    Int32[] indices
    IIndexMap map

    Apply(Int32[], IList<Int32>)

    Declaration
    public static void Apply(int[] indices, IList<int> map)
    Parameters
    Type Name Description
    Int32[] indices
    IList<Int32> map

    cycle_indices_minfirst(ref Index3i)

    Declaration
    public static void cycle_indices_minfirst(ref Index3i tri)
    Parameters
    Type Name Description
    Index3i tri

    EdgesToVertices(DMesh3, HashSet<Int32>, HashSet<Int32>)

    Declaration
    public static void EdgesToVertices(DMesh3 mesh, HashSet<int> edges, HashSet<int> vertices)
    Parameters
    Type Name Description
    DMesh3 mesh
    HashSet<Int32> edges
    HashSet<Int32> vertices

    EdgesToVertices(DMesh3, IEnumerable<Int32>, HashSet<Int32>)

    Declaration
    public static void EdgesToVertices(DMesh3 mesh, IEnumerable<int> edges, HashSet<int> vertices)
    Parameters
    Type Name Description
    DMesh3 mesh
    IEnumerable<Int32> edges
    HashSet<Int32> vertices

    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
    Type Name Description
    Int32[] indices
    Func<Int32, Boolean> FilterF
    Boolean bForceCopy
    Returns
    Type Description
    Int32[]

    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
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32 a
    Int32 b
    Int32[] tri_verts
    Returns
    Type Description
    Int32

    find_edge_other_v(Index2i, Int32)

    Declaration
    public static int find_edge_other_v(Index2i ev, int v)
    Parameters
    Type Name Description
    Index2i ev
    Int32 v
    Returns
    Type Description
    Int32

    find_edge_other_v(ref Index2i, Int32)

    Declaration
    public static int find_edge_other_v(ref Index2i ev, int v)
    Parameters
    Type Name Description
    Index2i ev
    Int32 v
    Returns
    Type Description
    Int32

    find_shared_edge_v(ref Index2i, ref Index2i)

    Declaration
    public static int find_shared_edge_v(ref Index2i ev0, ref Index2i ev1)
    Parameters
    Type Name Description
    Index2i ev0
    Index2i ev1
    Returns
    Type Description
    Int32

    find_tri_index(Int32, Index3i)

    Declaration
    public static int find_tri_index(int a, Index3i tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Index3i tri_verts
    Returns
    Type Description
    Int32

    find_tri_index(Int32, ref Index3i)

    Declaration
    public static int find_tri_index(int a, ref Index3i tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Index3i tri_verts
    Returns
    Type Description
    Int32

    find_tri_index(Int32, Int32[])

    Declaration
    public static int find_tri_index(int a, int[] tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32[] tri_verts
    Returns
    Type Description
    Int32

    find_tri_ordered_edge(Int32, Int32, Index3i)

    Declaration
    public static int find_tri_ordered_edge(int a, int b, Index3i tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Int32

    find_tri_ordered_edge(Int32, Int32, Int32[])

    Declaration
    public static int find_tri_ordered_edge(int a, int b, int[] tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Int32[] tri_verts
    Returns
    Type Description
    Int32

    find_tri_other_index(Int32, Int32, Int32[])

    Declaration
    public static int find_tri_other_index(int a, int b, int[] tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Int32[] tri_verts
    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32 a
    Index3i tri_verts
    Returns
    Type Description
    Index2i

    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
    Type Name Description
    Int32 a
    Int32 b
    DVector<Int32> tri_array
    Int32 ti
    Returns
    Type Description
    Int32

    find_tri_other_vtx(Int32, Int32, Index3i)

    Declaration
    public static int find_tri_other_vtx(int a, int b, Index3i tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Int32

    find_tri_other_vtx(Int32, Int32, Int32[])

    Declaration
    public static int find_tri_other_vtx(int a, int b, int[] tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Int32[] tri_verts
    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32[] indices
    Func<Int32, Boolean> CheckF
    Returns
    Type Description
    Boolean

    is_ordered(Int32, Int32, ref Index3i)

    Declaration
    public static bool is_ordered(int a, int b, ref Index3i tri_verts)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Boolean

    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
    Type Name Description
    Int32 a
    Int32 b
    Int32 c
    Index3i tri
    Returns
    Type Description
    Boolean

    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
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Boolean

    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
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Boolean

    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
    Type Name Description
    Int32 a
    Int32 b
    Index3i tri_verts
    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32 a
    Int32 b
    Int32[] tri_verts
    Returns
    Type Description
    Int32

    same_pair_unordered(Int32, Int32, Int32, Int32)

    Declaration
    public static bool same_pair_unordered(int a0, int a1, int b0, int b1)
    Parameters
    Type Name Description
    Int32 a0
    Int32 a1
    Int32 b0
    Int32 b1
    Returns
    Type Description
    Boolean

    sort_indices(ref Index3i)

    Declaration
    public static void sort_indices(ref Index3i tri)
    Parameters
    Type Name Description
    Index3i tri

    ToGrid3Index(Int32, Int32, Int32)

    Declaration
    public static Vector3i ToGrid3Index(int idx, int nx, int ny)
    Parameters
    Type Name Description
    Int32 idx
    Int32 nx
    Int32 ny
    Returns
    Type Description
    Vector3i

    ToGrid3Linear(Vector3i, Int32, Int32)

    Declaration
    public static int ToGrid3Linear(Vector3i ijk, int nx, int ny)
    Parameters
    Type Name Description
    Vector3i ijk
    Int32 nx
    Int32 ny
    Returns
    Type Description
    Int32

    ToGrid3Linear(ref Vector3i, Int32, Int32)

    Declaration
    public static int ToGrid3Linear(ref Vector3i ijk, int nx, int ny)
    Parameters
    Type Name Description
    Vector3i ijk
    Int32 nx
    Int32 ny
    Returns
    Type Description
    Int32

    ToGrid3Linear(Int32, Int32, Int32, Int32, Int32)

    Declaration
    public static int ToGrid3Linear(int i, int j, int k, int nx, int ny)
    Parameters
    Type Name Description
    Int32 i
    Int32 j
    Int32 k
    Int32 nx
    Int32 ny
    Returns
    Type Description
    Int32

    TrianglesToEdges(DMesh3, HashSet<Int32>, HashSet<Int32>)

    Declaration
    public static void TrianglesToEdges(DMesh3 mesh, HashSet<int> triangles, HashSet<int> edges)
    Parameters
    Type Name Description
    DMesh3 mesh
    HashSet<Int32> triangles
    HashSet<Int32> edges

    TrianglesToEdges(DMesh3, IEnumerable<Int32>, HashSet<Int32>)

    Declaration
    public static void TrianglesToEdges(DMesh3 mesh, IEnumerable<int> triangles, HashSet<int> edges)
    Parameters
    Type Name Description
    DMesh3 mesh
    IEnumerable<Int32> triangles
    HashSet<Int32> edges

    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
    Type Name Description
    DMesh3 mesh
    IEnumerable<Int32> triangles
    HashSet<Int32> vertices
    In This Article
    Back to top ViRGIS VR GIS