PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ asx3d3_poly_sb()

static int asx3d3_poly_sb ( const LWPOLY poly,
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 251 of file lwout_x3d.c.

257 {
258  uint32_t i;
259  for (i=0; i<poly->nrings; i++)
260  {
261  if (i) stringbuffer_aprintf(sb, " "); /* inner ring points start */
262  ptarray_to_x3d3_sb(poly->rings[i], precision, opts, 1, sb);
263  }
264  return LW_SUCCESS;
265 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define LW_SUCCESS
Definition: liblwgeom.h:97
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:511
opts
Definition: ovdump.py:45
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:247
POINTARRAY ** rings
Definition: liblwgeom.h:519
uint32_t nrings
Definition: liblwgeom.h:524

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: