Search Results for

    Show / Hide Table of Contents

    Class MeshVertexSelection

    Inheritance
    Object
    MeshVertexSelection
    Implements
    IEnumerable<Int32>
    IEnumerable
    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 MeshVertexSelection : IEnumerable<int>, IEnumerable

    Constructors

    MeshVertexSelection(DMesh3)

    Declaration
    public MeshVertexSelection(DMesh3 mesh)
    Parameters
    Type Name Description
    DMesh3 mesh

    MeshVertexSelection(DMesh3, MeshEdgeSelection)

    Declaration
    public MeshVertexSelection(DMesh3 mesh, MeshEdgeSelection convertE)
    Parameters
    Type Name Description
    DMesh3 mesh
    MeshEdgeSelection convertE

    MeshVertexSelection(DMesh3, MeshFaceSelection)

    Declaration
    public MeshVertexSelection(DMesh3 mesh, MeshFaceSelection convertT)
    Parameters
    Type Name Description
    DMesh3 mesh
    MeshFaceSelection convertT

    Fields

    Mesh

    Declaration
    public DMesh3 Mesh
    Field Value
    Type Description
    DMesh3

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Methods

    Deselect(IEnumerable<Int32>)

    Declaration
    public void Deselect(IEnumerable<int> vertices)
    Parameters
    Type Name Description
    IEnumerable<Int32> vertices

    Deselect(Int32)

    Declaration
    public void Deselect(int vID)
    Parameters
    Type Name Description
    Int32 vID

    Deselect(Int32[])

    Declaration
    public void Deselect(int[] vertices)
    Parameters
    Type Name Description
    Int32[] vertices

    DeselectEdge(Int32)

    Declaration
    public void DeselectEdge(int eid)
    Parameters
    Type Name Description
    Int32 eid

    DeselectEdges(IEnumerable<Int32>)

    Declaration
    public void DeselectEdges(IEnumerable<int> edges)
    Parameters
    Type Name Description
    IEnumerable<Int32> edges

    ExpandToOneRingNeighbours(Func<Int32, Boolean>)

    Add all one-ring neighbours of current selection to set. On a large mesh this is quite expensive as we don't know the boundary, so we have to iterate over all triangles.

    Return false from FilterF to prevent vertices from being included.

    Declaration
    public void ExpandToOneRingNeighbours(Func<int, bool> FilterF = null)
    Parameters
    Type Name Description
    Func<Int32, Boolean> FilterF

    ExpandToOneRingNeighbours(Int32, Func<Int32, Boolean>)

    Declaration
    public void ExpandToOneRingNeighbours(int nRings, Func<int, bool> FilterF = null)
    Parameters
    Type Name Description
    Int32 nRings
    Func<Int32, Boolean> FilterF

    ExtractSelected()

    Declaration
    public HashSet<int> ExtractSelected()
    Returns
    Type Description
    HashSet<Int32>

    FloodFill(Int32, Func<Int32, Boolean>)

    Grow selection outwards from seed vertex, until it hits boundaries defined by vertex filter.

    Declaration
    public void FloodFill(int vSeed, Func<int, bool> VertIncludedF = null)
    Parameters
    Type Name Description
    Int32 vSeed
    Func<Int32, Boolean> VertIncludedF

    FloodFill(Int32[], Func<Int32, Boolean>)

    Grow selection outwards from seed vertex, until it hits boundaries defined by vertex filter.

    Declaration
    public void FloodFill(int[] Seeds, Func<int, bool> VertIncludedF = null)
    Parameters
    Type Name Description
    Int32[] Seeds
    Func<Int32, Boolean> VertIncludedF

    GetEnumerator()

    Declaration
    public IEnumerator<int> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Int32>

    IsSelected(Int32)

    Declaration
    public bool IsSelected(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    Boolean

    Select(IEnumerable<Int32>)

    Declaration
    public void Select(IEnumerable<int> vertices)
    Parameters
    Type Name Description
    IEnumerable<Int32> vertices

    Select(Int32)

    Declaration
    public void Select(int vID)
    Parameters
    Type Name Description
    Int32 vID

    Select(Int32[])

    Declaration
    public void Select(int[] vertices)
    Parameters
    Type Name Description
    Int32[] vertices

    SelectConnectedBoundaryV(Int32)

    Select set of boundary vertices connected to vSeed.

    Declaration
    public void SelectConnectedBoundaryV(int vSeed)
    Parameters
    Type Name Description
    Int32 vSeed

    SelectEdgeVertices(IEnumerable<Int32>)

    Declaration
    public void SelectEdgeVertices(IEnumerable<int> edges)
    Parameters
    Type Name Description
    IEnumerable<Int32> edges

    SelectEdgeVertices(Int32[])

    Declaration
    public void SelectEdgeVertices(int[] edges)
    Parameters
    Type Name Description
    Int32[] edges

    SelectInteriorVertices(MeshFaceSelection)

    for each vertex of input triangle set, select vertex if all one-ring triangles are contained in triangle set (ie vertex is not on boundary of triangle set).

    Declaration
    public void SelectInteriorVertices(MeshFaceSelection triangles)
    Parameters
    Type Name Description
    MeshFaceSelection triangles

    SelectTriangleVertices(MeshFaceSelection)

    Declaration
    public void SelectTriangleVertices(MeshFaceSelection triangles)
    Parameters
    Type Name Description
    MeshFaceSelection triangles

    SelectTriangleVertices(IEnumerable<Int32>)

    Declaration
    public void SelectTriangleVertices(IEnumerable<int> triangles)
    Parameters
    Type Name Description
    IEnumerable<Int32> triangles

    SelectTriangleVertices(Int32[])

    Declaration
    public void SelectTriangleVertices(int[] triangles)
    Parameters
    Type Name Description
    Int32[] triangles

    ToArray()

    Declaration
    public int[] ToArray()
    Returns
    Type Description
    Int32[]

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    In This Article
    Back to top ViRGIS VR GIS