6230 int forward_edges_count = 0;
6232 int backward_edges_count = 0;
6238 forward_edges_count = 0;
6240 backward_edges_count = 0;
6242 for ( i=0; i<ring->
size; ++i )
6249 LWDEBUGF(3,
"Forward edge %d is %d", forward_edges_count,
id);
6250 forward_edges[forward_edges_count].
edge_id = id;
6251 forward_edges[forward_edges_count++].
face_left = face;
6256 LWDEBUGF(3,
"Backward edge %d is %d", forward_edges_count,
id);
6257 backward_edges[backward_edges_count].
edge_id = id;
6258 backward_edges[backward_edges_count++].
face_right = face;
6264 if ( forward_edges_count )
6267 forward_edges_count,
6272 lwfree( backward_edges );
6276 if ( ret != forward_edges_count )
6279 lwfree( backward_edges );
6280 lwerror(
"Unexpected error: %d edges updated when expecting %d (forward)",
6281 ret, forward_edges_count);
6287 if ( backward_edges_count )
6290 backward_edges_count,
6295 lwfree( backward_edges );
6299 if ( ret != backward_edges_count )
6302 lwfree( backward_edges );
6303 lwerror(
"Unexpected error: %d edges updated when expecting %d (backward)",
6304 ret, backward_edges_count);
6310 lwfree( backward_edges );
void * lwalloc(size_t size)
#define LWT_COL_EDGE_FACE_RIGHT
LWT_INT64 LWT_ELEMID
Identifier of topology element.
#define LWT_COL_EDGE_FACE_LEFT
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
static int lwt_be_updateEdgesById(LWT_TOPOLOGY *topo, const LWT_ISO_EDGE *edges, int numedges, int upd_fields)
LWT_EDGERING_ELEM ** elems
const LWT_BE_IFACE * be_iface