geom.poly.next.poly
Syntax
- pn = geom.poly.next.poly(p,i)
Get the next polygon connected to the edge with local index i within the source polygon p. This can be used to iterate through all polygons connected to an edge using the
geom.poly.next.index
function.- Returns:
pn - next polygon pointer
- Arguments:
p - source polygon pointer
i - edge index with 1 \(\le\) i \(\le\)
geom.poly.size
Usage Example
The following example illustrates how geom.poly.next.poly
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 polygon loop
global test25 = 0
local edge_pnt = geom.edge.find(setpnt,1)
local poly_pnt = geom.edge.start.poly(edge_pnt)
local edge_ind = geom.edge.start.index(edge_pnt)
See also
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Dec 14, 2024 |