PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ _lwt_getIsoEdgeById()

static LWT_ISO_EDGE* _lwt_getIsoEdgeById ( LWT_ISO_EDGE_TABLE tab,
LWT_ELEMID  id 
)
static

Definition at line 5937 of file lwgeom_topo.c.

References compare_iso_edges_by_id(), LWT_ISO_EDGE::edge_id, LWT_ISO_EDGE_TABLE_T::edges, and LWT_ISO_EDGE_TABLE_T::size.

Referenced by _lwt_BuildEdgeRing().

5938 {
5939  LWT_ISO_EDGE key;
5940  key.edge_id = id;
5941 
5942  void *match = bsearch( &key, tab->edges, tab->size,
5943  sizeof(LWT_ISO_EDGE),
5945  return match;
5946 }
LWT_ISO_EDGE * edges
Definition: lwgeom_topo.c:5919
static int compare_iso_edges_by_id(const void *si1, const void *si2)
Definition: lwgeom_topo.c:5924
LWT_ELEMID edge_id
Here is the call graph for this function:
Here is the caller graph for this function: