569{
571
574
575
577
578 LWDEBUG(2,
"Ring built, calling EdgeRingIsCCW");
579
580
582
583 if ( isccw )
584 {
585
587
588 LWDEBUGF(1,
"Ring of edge %lld is a shell (shell %d)", edge->
edge_id * side, shells->
size);
589
591
593
596 if ( ret == -1 )
597 {
599 return -1;
600 }
601 if ( ret != 1 )
602 {
603 lwerror(
"Unexpected error: %d faces inserted when expecting 1", ret);
604 return -1;
605 }
606
609
610
612 if ( ret )
613 {
614 lwerror(
"Errors updating edgering side face: %s",
616 return -1;
617 }
618
619 }
620 else
621 {
623 *registered = placeholder_faceid;
625 }
626
627 return 0;
628}
LWT_INT64 LWT_ELEMID
Identifier of topology element.
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
#define PGTOPO_BE_ERROR()
int lwt_be_insertFaces(LWT_TOPOLOGY *topo, LWT_ISO_FACE *face, uint64_t numelems)
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
void void lwerror(const char *fmt,...) __attribute__((format(printf
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_UpdateEdgeRingSideFace(LWT_TOPOLOGY *topo, LWT_EDGERING *ring, LWT_ELEMID face)
static int _lwt_EdgeRingIsCCW(LWT_EDGERING *ring)
#define LWT_HOLES_FACE_PLACEHOLDER
#define LWT_EDGERING_ARRAY_PUSH(a, r)
const LWT_BE_IFACE * be_iface