geom.node.start.edge

Syntax

e = geom.node.start.edge(n)

Get the first edge connected to a node. This can be used to iterate through all edges attached to a node with the geom.node.start.index, geom.edge.next.edge and geom.edge.next.index functions.

Returns:e - edge pointer
Arguments:n - node pointer

Usage Example

The following example illustrates how geom.node.start.edge can be used to iterate through all edges attached to a node, counting the number of edges.

    global test21 = geom.edge.node.pos(pnt,2)
    global test22 = geom.edge.pos(pnt)
    ; Test node to edge loop
    global test23 = 0
    local node_pnt = geom.node.find(setpnt,1)
    local edge_pnt = geom.node.start.edge(node_pnt)
    local node_ind = geom.node.start.index(node_pnt)
    io.out(edge_pnt)
    io.out(node_ind)
    loop while edge_pnt # null