PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asx3d3_triangle_size()

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

6 for the 3 sides and space to separate each side

Definition at line 333 of file lwout_x3d.c.

References pointArray_X3Dsize(), and LWTRIANGLE::points.

Referenced by asx3d3_tin_size(), and asx3d3_triangle().

334 {
335  size_t size;
336  size_t defidlen = strlen(defid);
337 
339  size = sizeof("<IndexedTriangleSet index=''></IndexedTriangleSet>") + defidlen + 6;
340  size += pointArray_X3Dsize(triangle->points, precision);
341 
342  return size;
343 }
static size_t pointArray_X3Dsize(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_x3d.c:909
POINTARRAY * points
Definition: liblwgeom.h:417
uint8_t precision
Definition: cu_in_twkb.c:25
Here is the call graph for this function:
Here is the caller graph for this function: