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

References pointArray_X3Dsize(), and LWTRIANGLE::points.

Referenced by asx3d3_tin_size(), and asx3d3_triangle().

355 {
356  size_t size;
357  size_t defidlen = strlen(defid);
358 
360  size = sizeof("<IndexedTriangleSet index=''></IndexedTriangleSet>") + defidlen + 6;
361  size += pointArray_X3Dsize(triangle->points, precision);
362 
363  return size;
364 }
static size_t pointArray_X3Dsize(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_x3d.c:930
POINTARRAY * points
Definition: liblwgeom.h:433
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: