PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 326 of file lwout_x3d.c.

References pointArray_X3Dsize(), and LWTRIANGLE::points.

Referenced by asx3d3_tin_size(), and asx3d3_triangle().

327 {
328  size_t size;
329  size_t defidlen = strlen(defid);
330 
332  size = sizeof("<IndexedTriangleSet index=''></IndexedTriangleSet>") + defidlen + 6;
333  size += pointArray_X3Dsize(triangle->points, precision);
334 
335  return size;
336 }
static size_t pointArray_X3Dsize(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_x3d.c:858
POINTARRAY * points
Definition: liblwgeom.h:389

Here is the call graph for this function:

Here is the caller graph for this function: