Class MeshVertexSelection
Inheritance
MeshVertexSelection
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
MeshVertexSelection(DMesh3, MeshFaceSelection)
Declaration
public MeshVertexSelection(DMesh3 mesh, MeshFaceSelection convertT)
Parameters
Fields
Mesh
Declaration
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
Methods
Deselect(IEnumerable<Int32>)
Declaration
public void Deselect(IEnumerable<int> vertices)
Parameters
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
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
ExpandToOneRingNeighbours(Int32, Func<Int32, Boolean>)
Declaration
public void ExpandToOneRingNeighbours(int nRings, Func<int, bool> FilterF = null)
Parameters
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
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
GetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()
Returns
IsSelected(Int32)
Declaration
public bool IsSelected(int vID)
Parameters
Type |
Name |
Description |
Int32 |
vID |
|
Returns
Select(IEnumerable<Int32>)
Declaration
public void Select(IEnumerable<int> vertices)
Parameters
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
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
SelectTriangleVertices(MeshFaceSelection)
Declaration
public void SelectTriangleVertices(MeshFaceSelection triangles)
Parameters
SelectTriangleVertices(IEnumerable<Int32>)
Declaration
public void SelectTriangleVertices(IEnumerable<int> triangles)
Parameters
SelectTriangleVertices(Int32[])
Declaration
public void SelectTriangleVertices(int[] triangles)
Parameters
Type |
Name |
Description |
Int32[] |
triangles |
|
ToArray()
Declaration
Returns
Implements