Search Results for

    Show / Hide Table of Contents

    Class DGraph

    Base class for Arbitrary-Topology Graphs. Similar structure to topology parts of DMesh3. Each vertex can be connected to an arbitrary number of edges. Each edge can have an integer GroupID. See DGraph2 and DGraph3 for 3d implementations. Use DGraphN if you would like a topology-only graph. You cannot instantiate DGraph directly.

    Inheritance
    Object
    DGraph
    DGraph2
    DGraph3
    DGraphN
    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 abstract class DGraph

    Constructors

    DGraph()

    Declaration
    public DGraph()

    Fields

    DuplicateEdgeID

    Declaration
    public const int DuplicateEdgeID = -2
    Field Value
    Type Description
    Int32

    edges

    Declaration
    protected DVector<int> edges
    Field Value
    Type Description
    DVector<Int32>

    edges_refcount

    Declaration
    protected RefCountVector edges_refcount
    Field Value
    Type Description
    RefCountVector

    InvalidEdge3

    Declaration
    public static readonly Index3i InvalidEdge3
    Field Value
    Type Description
    Index3i

    InvalidEdgeV

    Declaration
    public static readonly Index2i InvalidEdgeV
    Field Value
    Type Description
    Index2i

    InvalidID

    Declaration
    public const int InvalidID = -1
    Field Value
    Type Description
    Int32

    max_group_id

    Declaration
    protected int max_group_id
    Field Value
    Type Description
    Int32

    shape_timestamp

    Declaration
    protected int shape_timestamp
    Field Value
    Type Description
    Int32

    timestamp

    Declaration
    protected int timestamp
    Field Value
    Type Description
    Int32

    vertex_edges

    Declaration
    protected DVector<List<int>> vertex_edges
    Field Value
    Type Description
    DVector<List<Int32>>

    vertices_refcount

    Declaration
    protected RefCountVector vertices_refcount
    Field Value
    Type Description
    RefCountVector

    Properties

    EdgeCount

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

    IsCompact

    Declaration
    public bool IsCompact { get; }
    Property Value
    Type Description
    Boolean

    IsCompactV

    Declaration
    public bool IsCompactV { get; }
    Property Value
    Type Description
    Boolean

    MaxEdgeID

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

    MaxGroupID

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

    MaxVertexID

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

    ShapeTimestamp

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

    Timestamp

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

    VertexCount

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

    Methods

    add_edge(Int32, Int32, Int32)

    Declaration
    protected int add_edge(int a, int b, int gid)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Int32 gid
    Returns
    Type Description
    Int32

    AllocateEdgeGroup()

    Declaration
    public int AllocateEdgeGroup()
    Returns
    Type Description
    Int32

    append_new_split_vertex(Int32, Int32)

    Declaration
    protected virtual int append_new_split_vertex(int a, int b)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Returns
    Type Description
    Int32

    append_vertex_internal()

    Declaration
    protected int append_vertex_internal()
    Returns
    Type Description
    Int32

    AppendEdge(Index2i, Int32)

    Declaration
    public int AppendEdge(Index2i ev, int gid = -1)
    Parameters
    Type Name Description
    Index2i ev
    Int32 gid
    Returns
    Type Description
    Int32

    AppendEdge(Int32, Int32, Int32)

    Declaration
    public int AppendEdge(int v0, int v1, int gid = -1)
    Parameters
    Type Name Description
    Int32 v0
    Int32 v1
    Int32 gid
    Returns
    Type Description
    Int32

    CheckValidity(DGraph.FailMode)

    Declaration
    public virtual bool CheckValidity(DGraph.FailMode eFailMode = DGraph.FailMode.Throw)
    Parameters
    Type Name Description
    DGraph.FailMode eFailMode
    Returns
    Type Description
    Boolean

    CollapseEdge(Int32, Int32, out DGraph.EdgeCollapseInfo)

    Declaration
    public MeshResult CollapseEdge(int vKeep, int vRemove, out DGraph.EdgeCollapseInfo collapse)
    Parameters
    Type Name Description
    Int32 vKeep
    Int32 vRemove
    DGraph.EdgeCollapseInfo collapse
    Returns
    Type Description
    MeshResult

    debug_check_is_edge(Int32)

    Declaration
    public void debug_check_is_edge(int e)
    Parameters
    Type Name Description
    Int32 e

    debug_check_is_vertex(Int32)

    Declaration
    public void debug_check_is_vertex(int v)
    Parameters
    Type Name Description
    Int32 v

    edge_has_v(Int32, Int32)

    Declaration
    protected bool edge_has_v(int eid, int vid)
    Parameters
    Type Name Description
    Int32 eid
    Int32 vid
    Returns
    Type Description
    Boolean

    edge_other_v(Int32, Int32)

    Declaration
    protected int edge_other_v(int eID, int vID)
    Parameters
    Type Name Description
    Int32 eID
    Int32 vID
    Returns
    Type Description
    Int32

    EdgeIndices()

    Declaration
    public IEnumerable<int> EdgeIndices()
    Returns
    Type Description
    IEnumerable<Int32>

    Edges()

    Declaration
    public IEnumerable<Index3i> Edges()
    Returns
    Type Description
    IEnumerable<Index3i>

    FindEdge(Int32, Int32)

    Declaration
    public int FindEdge(int vA, int vB)
    Parameters
    Type Name Description
    Int32 vA
    Int32 vB
    Returns
    Type Description
    Int32

    GetEdge(Int32)

    Declaration
    public Index3i GetEdge(int eID)
    Parameters
    Type Name Description
    Int32 eID
    Returns
    Type Description
    Index3i

    GetEdgeGroup(Int32)

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

    GetEdgeV(Int32)

    Declaration
    public Index2i GetEdgeV(int eID)
    Parameters
    Type Name Description
    Int32 eID
    Returns
    Type Description
    Index2i

    GetMaxVtxEdgeCount()

    Declaration
    public int GetMaxVtxEdgeCount()
    Returns
    Type Description
    Int32

    GetVtxEdgeCount(Int32)

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

    GetVtxEdges(Int32)

    Declaration
    public ReadOnlyCollection<int> GetVtxEdges(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    ReadOnlyCollection<Int32>

    IsBoundaryVertex(Int32)

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

    IsEdge(Int32)

    Declaration
    public bool IsEdge(int eID)
    Parameters
    Type Name Description
    Int32 eID
    Returns
    Type Description
    Boolean

    IsJunctionVertex(Int32)

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

    IsRegularVertex(Int32)

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

    IsVertex(Int32)

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

    RemoveEdge(Int32, Boolean)

    Declaration
    public MeshResult RemoveEdge(int eID, bool bRemoveIsolatedVertices)
    Parameters
    Type Name Description
    Int32 eID
    Boolean bRemoveIsolatedVertices
    Returns
    Type Description
    MeshResult

    RemoveVertex(Int32, Boolean)

    Declaration
    public MeshResult RemoveVertex(int vid, bool bRemoveIsolatedVertices)
    Parameters
    Type Name Description
    Int32 vid
    Boolean bRemoveIsolatedVertices
    Returns
    Type Description
    MeshResult

    replace_edge_vertex(Int32, Int32, Int32)

    Declaration
    protected int replace_edge_vertex(int eID, int vOld, int vNew)
    Parameters
    Type Name Description
    Int32 eID
    Int32 vOld
    Int32 vNew
    Returns
    Type Description
    Int32

    SetEdgeGroup(Int32, Int32)

    Declaration
    public void SetEdgeGroup(int eid, int group_id)
    Parameters
    Type Name Description
    Int32 eid
    Int32 group_id

    SplitEdge(Int32, out DGraph.EdgeSplitInfo)

    Declaration
    public MeshResult SplitEdge(int eab, out DGraph.EdgeSplitInfo split)
    Parameters
    Type Name Description
    Int32 eab
    DGraph.EdgeSplitInfo split
    Returns
    Type Description
    MeshResult

    SplitEdge(Int32, Int32, out DGraph.EdgeSplitInfo)

    Declaration
    public MeshResult SplitEdge(int vA, int vB, out DGraph.EdgeSplitInfo split)
    Parameters
    Type Name Description
    Int32 vA
    Int32 vB
    DGraph.EdgeSplitInfo split
    Returns
    Type Description
    MeshResult

    subclass_validity_checks(Action<Boolean>)

    Declaration
    protected virtual void subclass_validity_checks(Action<bool> CheckOrFailF)
    Parameters
    Type Name Description
    Action<Boolean> CheckOrFailF

    updateTimeStamp(Boolean)

    Declaration
    protected void updateTimeStamp(bool bShapeChange)
    Parameters
    Type Name Description
    Boolean bShapeChange

    VertexIndices()

    Declaration
    public IEnumerable<int> VertexIndices()
    Returns
    Type Description
    IEnumerable<Int32>

    VtxEdgesItr(Int32)

    Declaration
    public IEnumerable<int> VtxEdgesItr(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    IEnumerable<Int32>

    VtxVerticesItr(Int32)

    Declaration
    public IEnumerable<int> VtxVerticesItr(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    IEnumerable<Int32>
    In This Article
    Back to top ViRGIS VR GIS