geom.edge.start.poly
Syntax
- p = geom.edge.start.poly(e)
Get the first polygon attached to an edge. This is used to iterate through all polygons attached to an edge with the
geom.edge.start.index
,geom.poly.next.poly
andgeom.poly.next.index
functions.Returns: p - polygon pointer Arguments: e - edge pointer
Get the first polygon attached to edge e. This is used to iterate through all polygons attached to an edge using the geom.edge.start.index
, geom.poly.next.poly
and geom.poly.next.index
functions.
Returns: | p - polygon pointer |
---|---|
Arguments: | e - edge pointer |
Usage Example
The following example illustrates how geom.edge.start.poly
can be used to iterate through all polygons connected to an edge.
; 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)
local edge_ind = geom.edge.start.index(edge_pnt)
loop while poly_pnt # null
test25 = test25 + 1
local next_pnt = geom.poly.next.poly(poly_pnt,edge_ind)
edge_ind = geom.poly.next.index(poly_pnt,edge_ind)
poly_pnt = next_pnt
See also
Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |