PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ asx3d3_poly_sb()

static int asx3d3_poly_sb ( const LWPOLY poly,
__attribute__((__unused__)) char *  srs,
int  precision,
int  opts,
__attribute__((__unused__)) int  is_patch,
__attribute__((__unused__)) const char *  defid,
stringbuffer_t sb 
)
static

Compute the X3D coordinates of the polygon and add to string buffer.

Definition at line 246 of file lwout_x3d.c.

248 {
249  uint32_t i;
250  for (i=0; i<poly->nrings; i++)
251  {
252  if (i) stringbuffer_aprintf(sb, " "); /* inner ring points start */
253  ptarray_to_x3d3_sb(poly->rings[i], precision, opts, 1, sb);
254  }
255  return LW_SUCCESS;
256 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define LW_SUCCESS
Definition: liblwgeom.h:80
static int ptarray_to_x3d3_sb(POINTARRAY *pa, int precision, int opts, int is_closed, stringbuffer_t *sb)
In X3D3, coordinates are separated by a space separator.
Definition: lwout_x3d.c:502
opts
Definition: ovdump.py:44
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.
Definition: stringbuffer.c:253
POINTARRAY ** rings
Definition: liblwgeom.h:460
uint32_t nrings
Definition: liblwgeom.h:458
unsigned int uint32_t
Definition: uthash.h:78

References LW_SUCCESS, LWPOLY::nrings, ovdump::opts, precision, ptarray_to_x3d3_sb(), LWPOLY::rings, and stringbuffer_aprintf().

Referenced by asx3d3_collection_sb(), asx3d3_multi_sb(), and asx3d3_psurface_sb().

Here is the call graph for this function:
Here is the caller graph for this function: