PostGIS  2.4.9dev-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 376 of file lwout_x3d.c.

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

Referenced by lwgeom_to_x3d3().

377 {
378  char *output;
379  int size;
380 
381  size = asx3d3_triangle_size(triangle, srs, precision, opts, defid);
382  output = lwalloc(size);
383  asx3d3_triangle_buf(triangle, srs, output, precision, opts, defid);
384  return output;
385 }
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:354
void * lwalloc(size_t size)
Definition: lwutil.c:229
static size_t asx3d3_triangle_buf(const LWTRIANGLE *triangle, char *srs, char *output, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:367
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: