Search Results for

    Show / Hide Table of Contents

    Class MeshBoundaryLoops

    Extract boundary EdgeLoops from Mesh. Can also extract EdgeSpans for open areas, however default behavior is to ignore these. Set .SpanBehavior to configure.

    Inheritance
    Object
    MeshBoundaryLoops
    Implements
    IEnumerable<EdgeLoop>
    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 MeshBoundaryLoops : IEnumerable<EdgeLoop>, IEnumerable

    Constructors

    MeshBoundaryLoops(DMesh3, Boolean)

    Declaration
    public MeshBoundaryLoops(DMesh3 mesh, bool bAutoCompute = true)
    Parameters
    Type Name Description
    DMesh3 mesh
    Boolean bAutoCompute

    Fields

    EdgeFilterF

    Declaration
    public Func<int, bool> EdgeFilterF
    Field Value
    Type Description
    Func<Int32, Boolean>

    FailureBehavior

    Declaration
    public MeshBoundaryLoops.FailureBehaviors FailureBehavior
    Field Value
    Type Description
    MeshBoundaryLoops.FailureBehaviors

    FailureBowties

    Declaration
    public List<int> FailureBowties
    Field Value
    Type Description
    List<Int32>

    FellBackToSpansOnFailure

    Declaration
    public bool FellBackToSpansOnFailure
    Field Value
    Type Description
    Boolean

    Loops

    Declaration
    public List<EdgeLoop> Loops
    Field Value
    Type Description
    List<EdgeLoop>

    Mesh

    Declaration
    public DMesh3 Mesh
    Field Value
    Type Description
    DMesh3

    SawOpenSpans

    Declaration
    public bool SawOpenSpans
    Field Value
    Type Description
    Boolean

    SpanBehavior

    Declaration
    public MeshBoundaryLoops.SpanBehaviors SpanBehavior
    Field Value
    Type Description
    MeshBoundaryLoops.SpanBehaviors

    Spans

    Declaration
    public List<EdgeSpan> Spans
    Field Value
    Type Description
    List<EdgeSpan>

    Properties

    Count

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

    Item[Int32]

    Declaration
    public EdgeLoop this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    EdgeLoop

    MaxVerticesLoopIndex

    Index of Loop with largest vertex count

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

    SpanCount

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

    Methods

    Compute()

    Find the set of boundary EdgeLoops. Note that if we encounter topological issues, we will throw MeshBoundaryLoopsException w/ more info (if possible)

    Declaration
    public bool Compute()
    Returns
    Type Description
    Boolean

    FindLoopContainingEdge(Int32)

    find the loop index that contains an edge, or return -1

    Declaration
    public int FindLoopContainingEdge(int eid)
    Parameters
    Type Name Description
    Int32 eid
    Returns
    Type Description
    Int32

    FindLoopContainingVertex(Int32)

    find the loop index that contains a vertex, or return -1

    Declaration
    public int FindLoopContainingVertex(int vid)
    Parameters
    Type Name Description
    Int32 vid
    Returns
    Type Description
    Int32

    FindVertexIndex(Int32)

    find pair (loop_index,in_loop_index) of vertex vID in EdgeLoops, or Index2i.Max if not found

    Declaration
    public Index2i FindVertexIndex(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    Index2i

    GetEnumerator()

    Declaration
    public IEnumerator<EdgeLoop> GetEnumerator()
    Returns
    Type Description
    IEnumerator<EdgeLoop>

    Implements

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