PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asx3d3_triangle()

static char * asx3d3_triangle ( const LWTRIANGLE triangle,
char *  srs,
int  precision,
int  opts,
const char *  defid 
)
static

Definition at line 355 of file lwout_x3d.c.

References asx3d3_triangle_buf(), asx3d3_triangle_size(), and lwalloc().

Referenced by lwgeom_to_x3d3().

356 {
357  char *output;
358  int size;
359 
360  size = asx3d3_triangle_size(triangle, srs, precision, opts, defid);
361  output = lwalloc(size);
362  asx3d3_triangle_buf(triangle, srs, output, precision, opts, defid);
363  return output;
364 }
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asx3d3_triangle_size(const LWTRIANGLE *triangle, char *srs, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:333
void * lwalloc(size_t size)
Definition: lwutil.c:199
static size_t asx3d3_triangle_buf(const LWTRIANGLE *triangle, char *srs, char *output, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:346
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: