Search Results for

    Show / Hide Table of Contents

    Class DGraph2

    Arbitrary-Topology 2D 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
    DGraph2
    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 DGraph2 : DGraph

    Constructors

    DGraph2()

    Declaration
    public DGraph2()

    DGraph2(DGraph2)

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

    Fields

    InvalidVertex

    Declaration
    public static readonly Vector2d InvalidVertex
    Field Value
    Type Description
    Vector2d

    Properties

    CachedBounds

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

    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(DGraph2, Int32)

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

    AppendPolygon(GeneralPolygon2d, Int32)

    Declaration
    public void AppendPolygon(GeneralPolygon2d poly, int gid = -1)
    Parameters
    Type Name Description
    GeneralPolygon2d poly
    Int32 gid

    AppendPolygon(Polygon2d, Int32)

    Declaration
    public void AppendPolygon(Polygon2d poly, int gid = -1)
    Parameters
    Type Name Description
    Polygon2d poly
    Int32 gid

    AppendPolyline(PolyLine2d, Int32)

    Declaration
    public void AppendPolyline(PolyLine2d poly, int gid = -1)
    Parameters
    Type Name Description
    PolyLine2d poly
    Int32 gid

    AppendVertex(Vector2d)

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

    AppendVertex(Vector2d, Vector3f)

    Declaration
    public int AppendVertex(Vector2d v, Vector3f c)
    Parameters
    Type Name Description
    Vector2d 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 AxisAlignedBox2d GetBounds()
    Returns
    Type Description
    AxisAlignedBox2d

    GetEdgeCenter(Int32)

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

    GetEdgeSegment(Int32)

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

    GetEdgeV(Int32, ref Vector2d, ref Vector2d)

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

    GetVertex(Int32)

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

    GetVertexColor(Int32)

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

    OpeningAngle(Int32, Double)

    Compute opening angle at vertex vID. If not a vertex, or valence != 2, returns invalidValue argument. If either edge is degenerate, returns invalidValue argument.

    Declaration
    public double OpeningAngle(int vID, double invalidValue = 1.7976931348623157E+308)
    Parameters
    Type Name Description
    Int32 vID
    Double invalidValue
    Returns
    Type Description
    Double

    SetVertex(Int32, Vector2d)

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

    SetVertexColor(Int32, Vector3f)

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

    SortedVtxEdges(Int32)

    return edges around vID sorted by angle, in clockwise order

    Declaration
    public int[] SortedVtxEdges(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    Int32[]

    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<Vector2d> Vertices()
    Returns
    Type Description
    IEnumerable<Vector2d>
    In This Article
    Back to top ViRGIS VR GIS