geom.edge.start.index
Syntax
- i = geom.edge.start.index(e)
Get local index i of edge e within the first polygon attached to the edge. This can be used to iterate through all polygons attached to an edge using the
geom.edge.start.poly
,geom.poly.next.poly
andgeom.poly.next.index
functions.Returns: i - edge index Arguments: e - edge pointer
Usage Example
The following example illustrates how geom.edge.start.index
can be used to iterate through all polygons connected to an edge.
global test20 = geom.edge.id(geom.poly.edge(pnt,1))
global test21 = geom.node.id(geom.poly.node(pnt,2))
global test22 = geom.poly.normal(pnt)
global test23 = geom.poly.pos(pnt)
global test24 = geom.poly.area(pnt)
; Test edge to poly loop
global test25 = 0
local edge_pnt = geom.edge.find(setpnt,1)
local poly_pnt = geom.edge.start.poly(edge_pnt)
See also
Was this helpful? ... | FLAC3D © 2019, Itasca | Updated: Feb 25, 2024 |