Move an isolated node.
3723{
3725 int ret;
3726 int newPointFace;
3727
3729 if ( ! node ) return -1;
3730
3732 {
3734 lwerror(
"SQL/MM Spatial exception - coincident node");
3735 return -1;
3736 }
3737
3739 {
3741 lwerror(
"SQL/MM Spatial exception - edge crosses node.");
3742 return -1;
3743 }
3744
3745
3746
3748 if ( newPointFace == -1 ) {
3750 return -1;
3751 }
3753 {
3755 lwerror(
"Cannot move isolated node across faces");
3756 return -1;
3757 }
3758
3763 if ( ret == -1 ) {
3766 return -1;
3767 }
3768
3770 return 0;
3771}
#define LWT_COL_NODE_GEOM
#define PGTOPO_BE_ERROR()
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
LWT_ELEMID lwt_be_ExistsCoincidentNode(LWT_TOPOLOGY *topo, const LWPOINT *pt)
LWT_ELEMID lwt_be_ExistsEdgeIntersectingPoint(LWT_TOPOLOGY *topo, const LWPOINT *pt)
LWT_ELEMID lwt_GetFaceContainingPoint(LWT_TOPOLOGY *topo, const LWPOINT *pt)
Find the face-id of the face properly containing a given point.
static LWT_ISO_NODE * _lwt_GetIsoNode(LWT_TOPOLOGY *topo, LWT_ELEMID nid)
static int lwt_be_updateNodesById(LWT_TOPOLOGY *topo, const LWT_ISO_NODE *nodes, int numnodes, int upd_fields)
LWT_ELEMID containing_face