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
MeshBoundaryLoops
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
Fields
EdgeFilterF
Declaration
public Func<int, bool> EdgeFilterF
Field Value
FailureBehavior
Declaration
public MeshBoundaryLoops.FailureBehaviors FailureBehavior
Field Value
FailureBowties
Declaration
public List<int> FailureBowties
Field Value
FellBackToSpansOnFailure
Declaration
public bool FellBackToSpansOnFailure
Field Value
Loops
Declaration
public List<EdgeLoop> Loops
Field Value
Mesh
Declaration
Field Value
SawOpenSpans
Declaration
Field Value
SpanBehavior
Declaration
public MeshBoundaryLoops.SpanBehaviors SpanBehavior
Field Value
Spans
Declaration
public List<EdgeSpan> Spans
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
Item[Int32]
Declaration
public EdgeLoop this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
MaxVerticesLoopIndex
Index of Loop with largest vertex count
Declaration
public int MaxVerticesLoopIndex { get; }
Property Value
SpanCount
Declaration
public int SpanCount { get; }
Property Value
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
Returns
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
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
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
GetEnumerator()
Declaration
public IEnumerator<EdgeLoop> GetEnumerator()
Returns
Implements