6550{
6552
6555
6556
6558
6559 LWDEBUG(2,
"Ring built, calling EdgeRingIsCCW");
6560
6561
6563
6564 if ( isccw )
6565 {
6566
6568
6570
6572
6574
6577 if ( ret == -1 )
6578 {
6580 return -1;
6581 }
6582 if ( ret != 1 )
6583 {
6584 lwerror(
"Unexpected error: %d faces inserted when expecting 1", ret);
6585 return -1;
6586 }
6587
6588 *registered = newface.
face_id;
6590
6591
6593 if ( ret )
6594 {
6595 lwerror(
"Errors updating edgering side face: %s",
6597 return -1;
6598 }
6599
6600 }
6601 else
6602 {
6604 *registered = placeholder_faceid;
6606 }
6607
6608 return 0;
6609}
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static GBOX * _lwt_EdgeRingGetBbox(LWT_EDGERING *ring)
static LWT_EDGERING * _lwt_BuildEdgeRing(__attribute__((__unused__)) LWT_TOPOLOGY *topo, LWT_ISO_EDGE_TABLE *edges, LWT_ISO_EDGE *edge, int side)
static int lwt_be_insertFaces(LWT_TOPOLOGY *topo, LWT_ISO_FACE *face, uint64_t numelems)
static int _lwt_UpdateEdgeRingSideFace(LWT_TOPOLOGY *topo, LWT_EDGERING *ring, LWT_ELEMID face)
static int _lwt_EdgeRingIsCCW(LWT_EDGERING *ring)
#define LWT_HOLES_FACE_PLACEHOLDER
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
#define LWT_EDGERING_ARRAY_PUSH(a, r)
const LWT_BE_IFACE * be_iface