Search Results for

    Show / Hide Table of Contents

    Class DGraph3

    Arbitrary-Topology 3D Graph. This is similar to DMesh3 but without faces. Each vertex can be connected to an arbitrary number of edges. Each vertex can have a 3-float color, and edge edge can have an integer GroupID

    Inheritance
    Object
    DGraph
    DGraph3
    Inherited Members
    DGraph.InvalidID
    DGraph.DuplicateEdgeID
    DGraph.InvalidEdgeV
    DGraph.InvalidEdge3
    DGraph.vertices_refcount
    DGraph.vertex_edges
    DGraph.edges_refcount
    DGraph.edges
    DGraph.timestamp
    DGraph.shape_timestamp
    DGraph.max_group_id
    DGraph.updateTimeStamp(Boolean)
    DGraph.Timestamp
    DGraph.ShapeTimestamp
    DGraph.VertexCount
    DGraph.EdgeCount
    DGraph.MaxVertexID
    DGraph.MaxEdgeID
    DGraph.MaxGroupID
    DGraph.IsVertex(Int32)
    DGraph.IsEdge(Int32)
    DGraph.GetVtxEdges(Int32)
    DGraph.GetVtxEdgeCount(Int32)
    DGraph.GetMaxVtxEdgeCount()
    DGraph.GetEdgeGroup(Int32)
    DGraph.SetEdgeGroup(Int32, Int32)
    DGraph.AllocateEdgeGroup()
    DGraph.GetEdgeV(Int32)
    DGraph.GetEdge(Int32)
    DGraph.append_vertex_internal()
    DGraph.AppendEdge(Int32, Int32, Int32)
    DGraph.AppendEdge(Index2i, Int32)
    DGraph.add_edge(Int32, Int32, Int32)
    DGraph.VertexIndices()
    DGraph.EdgeIndices()
    DGraph.Edges()
    DGraph.VtxVerticesItr(Int32)
    DGraph.VtxEdgesItr(Int32)
    DGraph.FindEdge(Int32, Int32)
    DGraph.RemoveEdge(Int32, Boolean)
    DGraph.RemoveVertex(Int32, Boolean)
    DGraph.SplitEdge(Int32, Int32, DGraph.EdgeSplitInfo)
    DGraph.SplitEdge(Int32, DGraph.EdgeSplitInfo)
    DGraph.CollapseEdge(Int32, Int32, DGraph.EdgeCollapseInfo)
    DGraph.edge_has_v(Int32, Int32)
    DGraph.edge_other_v(Int32, Int32)
    DGraph.replace_edge_vertex(Int32, Int32, Int32)
    DGraph.IsCompact
    DGraph.IsCompactV
    DGraph.IsBoundaryVertex(Int32)
    DGraph.IsJunctionVertex(Int32)
    DGraph.IsRegularVertex(Int32)
    DGraph.CheckValidity(DGraph.FailMode)
    DGraph.debug_check_is_vertex(Int32)
    DGraph.debug_check_is_edge(Int32)
    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 DGraph3 : DGraph

    Constructors

    DGraph3()

    Declaration
    public DGraph3()

    DGraph3(DGraph3)

    Declaration
    public DGraph3(DGraph3 copy)
    Parameters
    Type Name Description
    DGraph3 copy

    Fields

    InvalidVertex

    Declaration
    public static readonly Vector3d InvalidVertex
    Field Value
    Type Description
    Vector3d

    Properties

    CachedBounds

    Declaration
    public AxisAlignedBox3d CachedBounds { get; }
    Property Value
    Type Description
    AxisAlignedBox3d

    HasVertexColors

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

    Methods

    append_new_split_vertex(Int32, Int32)

    Declaration
    protected override int append_new_split_vertex(int a, int b)
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    Returns
    Type Description
    Int32
    Overrides
    DGraph.append_new_split_vertex(Int32, Int32)

    AppendGraph(DGraph3, Int32)

    Declaration
    public void AppendGraph(DGraph3 graph, int gid = -1)
    Parameters
    Type Name Description
    DGraph3 graph
    Int32 gid

    AppendVertex(Vector3d)

    Declaration
    public int AppendVertex(Vector3d v)
    Parameters
    Type Name Description
    Vector3d v
    Returns
    Type Description
    Int32

    AppendVertex(Vector3d, Vector3f)

    Declaration
    public int AppendVertex(Vector3d v, Vector3f c)
    Parameters
    Type Name Description
    Vector3d v
    Vector3f c
    Returns
    Type Description
    Int32

    DiscardVertexColors()

    Declaration
    public void DiscardVertexColors()

    EnableVertexColors(Vector3f)

    Declaration
    public void EnableVertexColors(Vector3f initial_color)
    Parameters
    Type Name Description
    Vector3f initial_color

    GetBounds()

    Declaration
    public AxisAlignedBox3d GetBounds()
    Returns
    Type Description
    AxisAlignedBox3d

    GetEdgeCenter(Int32)

    Declaration
    public Vector3d GetEdgeCenter(int eID)
    Parameters
    Type Name Description
    Int32 eID
    Returns
    Type Description
    Vector3d

    GetEdgeSegment(Int32)

    Declaration
    public Segment3d GetEdgeSegment(int eID)
    Parameters
    Type Name Description
    Int32 eID
    Returns
    Type Description
    Segment3d

    GetEdgeV(Int32, ref Vector3d, ref Vector3d)

    Declaration
    public bool GetEdgeV(int eID, ref Vector3d a, ref Vector3d b)
    Parameters
    Type Name Description
    Int32 eID
    Vector3d a
    Vector3d b
    Returns
    Type Description
    Boolean

    GetVertex(Int32)

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

    GetVertexColor(Int32)

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

    Segments()

    Declaration
    public IEnumerable<Segment3d> Segments()
    Returns
    Type Description
    IEnumerable<Segment3d>

    SetVertex(Int32, Vector3d)

    Declaration
    public void SetVertex(int vID, Vector3d vNewPos)
    Parameters
    Type Name Description
    Int32 vID
    Vector3d vNewPos

    SetVertexColor(Int32, Vector3f)

    Declaration
    public void SetVertexColor(int vID, Vector3f vNewColor)
    Parameters
    Type Name Description
    Int32 vID
    Vector3f vNewColor

    subclass_validity_checks(Action<Boolean>)

    Declaration
    protected override void subclass_validity_checks(Action<bool> CheckOrFailF)
    Parameters
    Type Name Description
    Action<Boolean> CheckOrFailF
    Overrides
    DGraph.subclass_validity_checks(Action<Boolean>)

    Vertices()

    Declaration
    public IEnumerable<Vector3d> Vertices()
    Returns
    Type Description
    IEnumerable<Vector3d>
    In This Article
    Back to top ViRGIS VR GIS